latex3 / luaotfload

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

Failure to apply tracking to certain strings when using junicode #286

Open fr-peter opened 1 month ago

fr-peter commented 1 month ago

Description

I am using junicodevf in the latest TeX Live distribution. When using small capitals, I have found that words containing the string "ectio" do not have the desired tracking applied. This only happens when the option Renderer=Harfbuzz is present in the fontspec command that sets the font (which is done by the junicodevf package). When the font is loaded without this option, all words receive the desired tracking.

The engine used is lualatex.

I brought the issue to the junicode github. It was suggested that it should be reported to microtype and luaotfload.

Minimal example demonstrating the issue

% !TEX TS-program = lualatex
\documentclass{article}
\usepackage{junicodevf}
% behaviour also happens when using the non-variable version. does not happen if either junicode package is not used.
\usepackage[tracking=true]{microtype}

\begin{document}
\scshape I found that the word “section” does not have proper tracking. After some testing, it's not just section, but any word with the string “ectio” in it will fail to have proper tracking.

electioneering deflection: in these examples, “lection” does not have proper tracking, but the other characters do.

Interestingly, putting a hyphen, en-dash, or em-dash immediately before or after the affected word will cause it to appear properly: section-electioneering---selection

\end{document}

Output

image

zauguin commented 1 month ago

You can close the microtype issue, this is purely a luaotfload bug.