I'm trying to use my Century Gothic TrueType font in a document, but it's failing to use the fl and fi ligatures. The input's below:
\documentclass{article}
\usepackage{xltxtra}
\setmainfont[Mapping=tex-text]{Century Gothic}
\begin{document}
ff fi fl
\end{document}
I'm using Win7; running charmap
, I can see Century Gothic has the ligatures at 0xFB01
and 0xFB02
, so I'd expect XeLaTeX to be able to pick them up. The document compiles with no errors, but no ligatures either.
I'm running MiKTeX, and the package update program tells me I'm on the latest version of everything.
Update: Raphink's suggestion to specify Ligatures=Rare
or Ligatures=Historical
has no effect on the produced document, and results in the console output having a few repeats of errors similar to the below:
*************************************************
* fontspec warning: "icu-feature-not-exist-in-font"
*
* OpenType feature 'Ligatures=Rare' (+dlig) not available for font 'Century
* Gothic' with script '' and language ''.
*************************************************
Update 2: As suggested by Ulrike Fischer, possibly relevant output from running xelatex --output-driver="xdvipdfmv -vv"
with \XeTeXtracingfonts= 1
in the file produced console output including the following lines that look vaguely relevant (it means nothing to me, but I'm hoping it might make sense to some of you):
<AGL:texglyphlist.txt>[1<CenturyGothic(Century Gothic:Regular)@9.96pt<NATIVE-FONTMAP:CenturyGothic/H/65536/0/0>
fontmap: CenturyGothic/H/65536/0/0 -> C:/Windows/Fonts/GOTHIC.TTF(Identity-H)
pdf_font>> Input encoding "Identity-H" requires at least 2 bytes.
pdf_font>> The -m <00> option will be assumed for "C:/Windows/Fonts/GOTHIC.TTF".
(CID:CenturyGothic)
pdf_font>> Type0 font "C:/Windows/Fonts/GOTHIC.TTF" cmap_id=<Identity-H,0> opened at font_id=<CenturyGothic/H/65536/0/0,0>.
>]
otf_cmap>> Creating ToUnicode CMap for "C:/Windows/Fonts/GOTHIC.TTF"...
(CID:C:/Windows/Fonts/GOTHIC.TTF[BNGDWL+CenturyGothic][CIDFontType2][5 glyphs (Max CID: 79)][12097 bytes])
There's also the following from the log file:
.................................................
. fontspec info: "no-scripts"
.
. Font Century Gothic does not contain any OpenType `Script' information.
.................................................
…
.................................................
. fontspec info: "defining-font"
.
. Font family 'CenturyGothic(0)' created for font 'Century Gothic' with
. options [Ligatures=TeX].
.
. This font family consists of the following shapes:
.
. * 'normal' with NFSS spec.:
. <->"Century Gothic/ICU:mapping=tex-text;"
.
. * 'bold' with NFSS spec.:
. <->"Century Gothic/B/ICU:mapping=tex-text;"
.
. * 'italic' with NFSS spec.:
. <->"Century Gothic/I/ICU:mapping=tex-text;"
.
. * 'bold italic' with NFSS spec.:
. <->"Century Gothic/BI/ICU:mapping=tex-text;"
.................................................
Update 3: Note this is a TrueType font, not an OpenType one. Still, the ligatures exist, so I see no reason why I shouldn't be able to use them…
\XeTeXtracingfonts= 1
and compile on the command line withxelatex --output-driver="xdvipdfmx -vv" file
. Then check the fonts mentioned in the log and the messages of xdvipdfmx. Perhaps this will give you some clues.Ligatures=Rare
andLigatures=Historical
options.[Mapping=tex-text]
is obsolete,Ligatures={TeX}
is recommended. Not sure, perhaps, ligatures are disabled intentionally for Century Gothic.