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

Wrong processing of CharacterVariant for font Iosevka (working in xelatex) #202

Closed
Rmano opened this issue Sep 9, 2021 · 2 comments
Closed
Labels
fixed in dev already fixed

Comments

@Rmano
Copy link

Rmano commented Sep 9, 2021

Install the font Iosevka; this is a direct link to the version I tested with: https://github.com/be5invis/Iosevka/releases/download/v10.1.1/super-ttc-iosevka-10.1.1.zip

and the MWE:

\documentclass[12pt]{article}
\usepackage{fontspec}
\setmonofont{Iosevka}[CharacterVariant={36:2, 26:6, 71:4}]
%
\begin{document}
\ttfamily
text in mono font 0123 4567 89 arrow: <- and shapes of AaAa; more words to add ``i'' (so few ies here\dots ¡and no k!)
\end{document}

Running with a current xelatex (This is XeTeX, Version 3.141592653-2.6-0.999993 (TeX Live 2021) (preloaded format=xelatex)) the result is the expected one (the "a" shape is a single-storey one):

image

with lualatex (This is LuaHBTeX, Version 1.13.2 (TeX Live 2021) ) I have:

image

I am not sure if it's user error, a font problem or a luaotfload error...

Removing the CharacterVariant switch gives a correct result.

@zauguin
Copy link
Member

zauguin commented Sep 14, 2021

See Hans' answer on the ConTeXt list for some context on this: There is an intentional feature of the fontloader which uses the number as a factor to repeat the last character in a ligature and because of how the font is organized this also triggers here for the dot of the i. Anyway the latest fontloader no longer does this by default, so this is fixed in dev.

@zauguin zauguin added the fixed in dev already fixed label Sep 14, 2021
@Rmano
Copy link
Author

Rmano commented Sep 14, 2021

@zauguin nice to know! Thank you for writing this here (I am not on the ConTeXt list...).
Closing it (correct?)!

BTW for people looking at this, the link to the mailing list thread is https://www.mail-archive.com/ntg-context@ntg.nl/msg99847.html

@Rmano Rmano closed this as completed Sep 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed in dev already fixed
Projects
None yet
Development

No branches or pull requests

2 participants