[NTG-context] tlig feature sometimes does not work

Mohammad Hossein Bateni bateni at gmail.com
Thu Mar 11 02:05:36 CET 2021


Since most fonts do not have the standard tex ligatures built in, I tend to
add them when I load the fonts.  Once in a while, I run into fonts where
this does not work.

See the attached tex/pdf files.  I basically load the font as follows:


This works fine for DejaVuSansMono and for one Farsi font I use (
but not for this other Farsi font (
Perhaps this is because the last font is not standard, but
TrueType/OpenType standard is sometimes up for interpretation.

I see two strange symptoms here:

\showotfcomposition displays the tlig feature differently for the last
font.  It appears in the "extra" list, not in "basic".  Why is that?  What
does this mean anyway?

In the pdf, you see two unicode characters U+647 and U+654 following the
numbers and dashes.  This usually has a ligature turning the two characters
into U+6C0.  It happens for VazirRegular but not for Mikhak-Medium.  Why is
that?  I have looked in the font: the ligature exists.  I have seen that
working in this demo page (https://aminabedi68.github.io/Mikhak/), though
it may be hard to spot.  Why is that?  Is there something about the
ordering of OpenType features which causes this behavior, or is there a bug
in the font processing code?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20210310/bb379c51/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tlig.tex
Type: text/x-tex
Size: 399 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20210310/bb379c51/attachment-0001.tex>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tlig.pdf
Type: application/pdf
Size: 29762 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20210310/bb379c51/attachment-0001.pdf>

More information about the ntg-context mailing list