latex3 / luaotfload

OpenType font loader for LuaTeX
Other
56 stars 6 forks source link

junicode F0001 in ss10 not correct in lualatex, ok in xelatex #244

Closed kberry closed 1 year ago

kberry commented 1 year ago

the MUFI character F0001 (latin small letter a with stroke through terminal) in the Junicode font, specifically JunicodeTwoBeta-Regular.ttf (https://github.com/psb1558/Junicode-font/blob/master/fonts/ttf/JunicodeTwoBeta-Regular.ttf) is typeset correctly with xelatex, but comes out as some other character with lualatex. Example document:

\documentclass{article}
\pagestyle{empty}
\usepackage{fontspec}

\newfontfamily{\Junicode}{JunicodeTwoBeta-Regular.ttf}
\newcommand{\sgl}[1]{{\Junicode\addfontfeature{StylisticSet=10}#1}}

\begin{document}
\sgl{ó°\200\201}
\end{document}

I'll attach the output with the two engines (the wrong lua output first, then the correct xe). This is with current TL and current Junicode.

If there are questions about how that character is supposed to work, Janusz Bien jsbien@mimuw.edu.pl is the one who's using it. It came up in a TUGboat article of his.

Thanks, Karl

P.S. I guessed this was in luaotfload, but I guess it could be an engine issue or somewhere else ...

f1lua f1xe

f0001-lua.pdf f0001-xe.pdf

zauguin commented 1 year ago

The HarfBuzz mode is not affected, for mode=node this is by design.

zauguin commented 1 year ago

Duplicate of #185

kberry commented 1 year ago

Thanks, it does work for me in harf mode.

I had naively thought that harf mode would be the default in lualatex, since it uses the luahbtex engine. Would that be possible, or is it too much to consider (ever)?

zauguin commented 1 year ago

Ever is a long time, but I don't see such a change (anytime soon). These are actually two questions though:

(Interesting side remark: The default is changed to HarfBuzz in the polyglossia package for some reasons. I'm not convinced that that's the right call, but it definitely helps with debugging...)