[XeTeX] Microtype Question: \DeclareMicrotypeAlias

Marc van Dongen dongen at cs.ucc.ie
Thu Oct 14 13:01:57 CEST 2010


Dear all,


I'd be much obliged if somebody could tell me how to configure
microtype in combination with a non-standard font. Currently,
I'm trying something along the following lines, but as far as
I can see microtype still cannot find its protrusion list.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[final,12pt]{article}

\usepackage{xltxtra}
\usepackage{fontspec}
\usepackage{xunicode}
\fontspec[ Path            = /home/dongen/.fonts/MyFonts/GaramondPremierPro/FONTS/,
           Extension       = .otf,
           BoldFont        = GaramondPremrPro-Bd,
           ItalicFont      = GaramondPremrPro-It,
           SlantedFont     = GaramondPremrPro-It,
           BoldSlantedFont = GaramondPremrPro-BdIt,
           BoldItalicFont  = GaramondPremrPro-BdIt,
           UprightFont     = GaramondPremrPro]
         {GaramondPremrPro}
\setmainfont{GaramondPremrPro}
\usepackage[verbose,protrusion=true]{microtype}
\DeclareMicrotypeAlias{GaramondPremrPro}{ugm}
% Following also doesn't seem to work.
% \DeclareMicrotypeAlias{Garamond Premr Pro}{ugm}
% \DeclareMicrotypeAlias{Garamond Premier Pro}{ugm}
% \DeclareMicrotypeAlias{GaramondPremierPro}{ugm}

\begin{document}
   Hello world.
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

When xelatex-ing this I get:

[ snip ]

(/usr/local/texlive/2010/texmf/tex/latex/microtype/microtype.sty
Package: microtype 2010/09/10 v2.5 <beta-02> Micro-typographical refinements (R
S)
\MT at toks=\toks39
\MT at count=\count170
LaTeX Info: Redefining \textls on input line 763.
\MT at outer@kern=\dimen115
LaTeX Info: Redefining \textmicrotypecontext on input line 1279.

(/usr/local/texlive/2010/texmf/tex/latex/microtype/microtype-xetex.def
LaTeX Info: Redefining \lsstyle on input line 234.
)
Package microtype Info: Loading configuration file microtype.cfg.

(/usr/local/texlive/2010/texmf/tex/latex/microtype/microtype.cfg
File: microtype.cfg 2010/09/10 v2.5 <beta-02> microtype main configuration file
 (RS)
)) (./tmp.aux)
\openout1 = `tmp.aux'.

[ snip ]

LaTeX Info: Redefining \microtypecontext on input line 22.
Package microtype Info: Character protrusion enabled (level 2).
Package microtype Info: Using default protrusion set `alltext'.
Package microtype Info: No tracking.
Package microtype Info: No spacing.
Package microtype Info: No kerning.
Package microtype Info: ... No configuration file mt-GaramondPremrPro.cfg.
Package microtype Info: ... Loading configuration file mt-ugm.cfg.

(/usr/local/texlive/2010/texmf/tex/latex/microtype/mt-ugm.cfg
File: mt-ugm.cfg 2006/01/26 v1.0 microtype config. file: URW Garamond (RS)
)
Package microtype Info: Setting up font `EU1/GaramondPremrPro(1)/m/n/12' on inp
ut line 22.


Package microtype Warning: I cannot find a protrusion list for font
(microtype)                `EU1/GaramondPremrPro(1)/m/n/12'. Switching off
(microtype)                protrusion for this font on input line 22.

[ snip ]

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Any suggestions for solutions would be more than welcome.

Thanks in advance for your help.

Regards,


Marc van Dongen


More information about the XeTeX mailing list