cormullion / juliamono

repository for JuliaMono, a monospaced font with reasonable Unicode support.
https://juliamono.netlify.app/
SIL Open Font License 1.1
1.39k stars 29 forks source link

Since version 0.044: U+0332 “Combining Low Line” typeset wrong after math alphanumerics by XeLaTeX and LuaLaTeX #137

Open anderslundstedt opened 2 years ago

anderslundstedt commented 2 years ago
\documentclass{article}
\usepackage{fontspec}
\setmainfont[Path = ./,]{JuliaMono-Regular}
\begin{document}
n̲ = 𝘮̲

x̲ = 𝛼̲
\end{document}

The above saved as test.tex and compiled with xelatex test.tex, or lualatex test.tex produces my intended output with version 0.043 and also with some earlier versions I tested:

Screen Shot 2022-03-25 at 06 16 29

With version 0.044:

Screen Shot 2022-03-25 at 06 16 43

The input for , 𝘮̲, , 𝛼̲ was, respectively:

u+0332 is “Combining Low Line“:

https://www.compart.com/en/unicode/U+0332

Everything looks good in TextEdit:

Screen Shot 2022-03-25 at 06 35 46

So perhaps a problem with XeLaTex and LuaLaTeX, or with fontspec?

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!

anderslundstedt commented 2 years ago

I have debugged this a bit, and have a workaround (that at least worked for version 0.045). I will post more info when I have time, but on the off chance that someone else wants to look into this, let me know and I will do my best to find time to share my findings.

anderslundstedt commented 2 years ago
\documentclass{article}
\usepackage{fontspec}
\setmainfont[Path = ./,]{JuliaMono-Regular}
\begin{document}
n̲ = 𝘮̲

x̲ = 𝛼̲
\end{document}

Just tested this MWE with the latest version (0.046) and now it is typeset correctly. During my debugging I discovered some related issues with glyphs for characters from the Combining Diacritical Marks block, so perhaps keep this issue open until I have had time to revisit all my test cases?

github-actions[bot] commented 9 months ago

This issue has been open for 30 days with no activity.