YuanshengZhao / Garamond-Math

An OTF math font matching the EB Garamond.
SIL Open Font License 1.1
104 stars 6 forks source link

There is no ♯ (\sharp) , ▿ (\triangledown) in font Garamond-Math #27

Open Mariusz-W opened 1 year ago

Mariusz-W commented 1 year ago

Some symbols missing that appear in advanced Mathematics. I got the corresponding messages about the missing characters when processing notes of my lectures.

f-graf commented 1 year ago

The symbols \flat and \natural are also missing. It seems that \triangledown is already missing from unicode-math. As a workaround the missing symbols (excluding \triangledown) can be loaded from another font.

Minimal example including the workaround.

% !TEX program = lualatex
\documentclass{article}
\usepackage{unicode-math}

\begin{document}
  \textbf{default font}\\
  \textbackslash flat $\flat$\\
  \textbackslash natural $\natural$\\
  \textbackslash sharp $\sharp$\\
  \textbackslash triangledown $\triangledown$
  \vskip1cm

  \setmathfont{Garamond-Math}
  \textbf{Garamond-Math}\\
  \textbackslash flat $\flat$\\
  \textbackslash natural $\natural$\\
  \textbackslash sharp $\sharp$\\
  \textbackslash triangledown $\triangledown$
  \vskip1cm

  \setmathfont{Latin Modern Math}[range={\sharp, \natural, \flat}]
  \textbf{Workaround}\\
  \textbackslash flat $\flat$\\
  \textbackslash natural $\natural$\\
  \textbackslash sharp $\sharp$\\
  \textbackslash triangledown $\triangledown$

\end{document}

minimal