Skip to content

Erroneous rendering of ZWNJ in harf mode #324

Description

@wehro

I would like to use ZWNJ characters U+200C to prevent ligatures, but I have run into problems in harf mode.
Here is an example:

\documentclass{article}
\begin{document}
\font\ant={file:antpolt-regular.otf:mode=harf;}
\ant Auffahrt Auf‌fahrt

\font\bonum={file:texgyrebonum-regular.otf:mode=harf;}
\bonum Auffahrt Auf‌fahrt
\end{document}

Please note that there is a ZWNJ between the two f of the second word in the fourth and the seventh line, even if it is not visible here.
The output is:

ZWNJ output

Instead of just cutting the ligature some unwanted character or space is inserted.
HarfBuzz is able to treat ZWNJ correctly, as shown by the following outputs of the hb-view program.

antpolt example bonum example

That’s why I assume a problem with luaotfload.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions