Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some code ligatures fail in Node mode #252

Open
mbertucci47 opened this issue May 11, 2023 · 0 comments
Open

some code ligatures fail in Node mode #252

mbertucci47 opened this issue May 11, 2023 · 0 comments

Comments

@mbertucci47
Copy link
Contributor

mbertucci47 commented May 11, 2023

StackExchange question: https://tex.stackexchange.com/q/685434/208544

Some code ligatures from the JetBrains Mono font (available here) do not work in Node mode. For example

\documentclass[12pt]{article}
\usepackage{fontspec}
\setmonofont{JetBrains Mono}
\begin{document}
Some that work:
\texttt{<=>, <=|, </, and -->}

Some that don't:
\texttt{<->, ->>, >->, and <-<}

This is fine:
\texttt{<=>, <<-}

But this is not:
\texttt{<=>, <<-,}
\end{document}

Node mode

bad-1

Harfbuzz mode

good-1

Some ligatures seem to never work and some only contextually work; see the last line with the comma added.

Adding [Renderer=HarfBuzz] fixes everything. I don't know if this is a bug but it was suggested by @u-fischer in the SE comments to report it.

Addendum: The issue is also there with Fira Code, with the same ligatures failing. Also fixed by using Harbuzz.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant