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

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

Open
fr-peter opened this issue Aug 6, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@fr-peter
Copy link

fr-peter commented Aug 6, 2024

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
Copy link
Member

zauguin commented Aug 6, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants