On 09-06-2010 21:09, Khaled Hosny wrote:

I have been working on a text whose main font is DTL Unico:

http://www.dutchtypelibrary.nl/Unico_rdrct.html

I have just noticed that the "fi" and "fl" ligatures are not
created. To be more precise: if I compile this document:

\documentclass{article}
\pagestyle{empty}
\usepackage{xltxtra}
\begin{document}
\Huge
\fontspec{DTLUnicoST}
fi fl
\end{document}

I don't get the ligatures that I should get. Am I doing something
wrong? Or could it be a flaw within the fonts that I am using?

Either the font lacks proper OpenType layout code, or you need to
explicitly select certain OpenType script/language, you can try setting
Language=Latin, Language=Default, Script=Latin or any combination of
them and if it works.

Thanks for the reply. Can you please tell me how should I set, say,
Language=Latin?

The same way you set Liagtures=Common.

Thanks. I tried every combination that I could think of and worked.

Oops! I meant to write "and it did not work" here.

If you have otfinfo command line tool (included in texlive)

I use MiKTeX, not texlive, and MiKTeX doesn't have that command line tool. But that's not a problem; I have downloaded it.

, you can try:

otfinfo -s /path/to/font.otf

Where '/path/to/font.otf' is the full path to your font file, It should
list font supported scripts and languages, then try:

I get

latn            Latin

otfinfo --script=SCRIPT -f /path/to/font.otf

All I get is

kern    Kerning

It is short, isn't it? It seems that it does not support ligatures. I did the same thing with another font (Akkurat Regular) and I got:

cpsp    Capital Spacing
frac    Fractions
kern    Kerning
liga    Standard Ligatures
ordn    Ordinals
ss01    Stylistic Set 1
zero    Slashed Zero

Where SCRIPT is one of the returned values of the first command. This
should show what script/language/feature combinations supported by the
font.

Thank you very much for your help.

Best regards,

José Carlos Santos


--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
 http://tug.org/mailman/listinfo/xetex

Reply via email to