LaTeX forum ⇒ Fonts & Character SetsUsing Google Noto fonts (with multilingual or unilingual documents)

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Removable6862
Posts: 1
Joined: Sat Jun 29, 2024 7:39 pm

Using Google Noto fonts (with multilingual or unilingual documents)

Postby Removable6862 » Sat Jun 29, 2024 7:51 pm

Google's Noto fonts are structured quite weirdly. The basic fonts `Noto Serif' and `Noto Sans' contain some scripts (Latin, Greek and Cyrillic) and punctuation marks, whereas fonts for other scripts contain only the scripts. When using them, you're supposed to fall back to the basic fonts when encountering punctuation marks and so on.

This is no issue in LaTeX when using babel and multilingual documents, if the main document language uses the Latin, Greek or Cyrillic script and other languages are never completely switched to, only used temporarily. When trying to write a document whose main language doesn't, however (for example Hebrew), punctuation marks can't be found. How could I resolve this?

Minimal example code (I use LuaTeX, the same issue appears on XeTeX as well):
\documentclass{article}
\usepackage[bidi=basic]{babel}
\babelprovide[import, main]{hebrew}
\babelfont{rm}{Noto Serif}
\babelfont{sf}{Noto Sans}
\babelfont{tt}{Noto Sans Mono}
\babelfont[hebrew]{rm}{Noto Serif Hebrew}
\babelfont[hebrew]{sf}{Noto Sans Hebrew}
\babelfont[hebrew]{tt}{Liberation Mono} %% No mono font for Hebrew

\begin{document}
בראשית ברא אלוהים את־השמים ואת־הארץ:

%% No colon :-(
\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics

Return to “Fonts & Character Sets”

Who is online

Users browsing this forum: No registered users and 4 guests