[texhax] Protrusion of Euler font with Microtype

Typo Crates typocrates at gmail.com
Sun Jul 11 18:19:28 CEST 2010


I am not able to make protrusion work with the Euler font (I tried
XeTeX and pdfTeX). For example, for testing a single letter, I am
using the following:

\documentclass{article}
\usepackage{euler}
\usepackage{microtype}
\usepackage{ifthen}

\SetProtrusion
   [ name     = euler ]
   { encoding = U,
     family   = eur  }
   {
       X  =  {, 1000}
   }

\newcommand\testprotrusion[2][]{%
  \ifthenelse{\equal{#1}{r}}{}{#2}%
  lorem ipsum dolor sit amet,
    \ifthenelse{\equal{#1}{r}}{\crulefill}{\leftarrowfill} #2
    \ifthenelse{\equal{#1}{l}}{\crulefill}{\rightarrowfill}
  you know the rest%
  \ifthenelse{\equal{#1}{l}}{}{#2}%
  \linebreak
  {\fontencoding{\encodingdefault}%
  \fontseries{\seriesdefault}%
  \fontshape{\shapedefault}%
  \selectfont
  Here is the beginning of a line, \dotfill and here is its end}
\linebreak

}

\begin{document}
\testprotrusion{$X$}
\end{document}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20100711/9e7fcd96/attachment.html>


More information about the texhax mailing list