10.07.2015 Views

The microtype package

The microtype package

The microtype package

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

IMPLEMENTATION: Font setup 62\MT@get@font@dimen\MT@info@missing@char\MT@scale@factor1207 \MT@count=\wd\z@1208 \else1209 \MT@count=\fontcharwd\MT@font\MT@char@\relax1210 \fi1211 1212 \ifnum\MT@count=\z@ \MT@info@missing@char \fi1213 }For letterspaced fonts, we have to subtract the letterspacing amount from thecharacters’ widths. <strong>The</strong> protrusion amounts will be adjusted in \MT@set@pr@codes.<strong>The</strong> letterspaced font is already loaded so that 1em = \fontdimen 6.1214 1215 \MT@requires@pdftex6{1216 \g@addto@macro\MT@get@charwd{%1217 \MT@ifdefined@c@T\MT@letterspace@1218 {\advance\MT@count -\dimexpr\MT@letterspace@ sp *\dimexpr 1em/1000\relax}%1219 }1220 }\relax1221 }{No adjustment with versions 0.14f and 0.14g.1222 \def\MT@scale@to@em{%1223 \MT@count=\@tempb\relax1224 \ifnum\MT@count=\z@ \else1225 \MT@scale@factor1226 \fi1227 }We need this in \MT@warn@code@too@large (neutralised).1228 \def\MT@get@charwd{\MT@count=\MT@dimen@six}1229 }1230 1231 For the space unit.1232 1233 \def\MT@get@font@dimen#1{%1234 \ifnum\fontdimen#1\MT@font=\z@1235 \MT@warning@nl{Font `\MT@@font’ does not specify its\MessageBreak1236 \@backslashchar fontdimen #1 (it’s zero)!\MessageBreak1237 You should use a different `unit’ for \MT@curr@list@name}%1238 \else1239 \MT@count=\fontdimen#1\MT@font1240 \fi1241 }Info about missing characters, or characters with zero width.1242 \def\MT@info@missing@char{%1243 \MT@info@nl{Character `\the\MT@toks’1244 ^^X \iffontchar\MT@font\MT@char@1245 has a width of 0pt1246 ^^X \else is missing\fi1247 ^^Q \MessageBreak (it’s probably missing)1248 \MessageBreak in font `\MT@@font’.\MessageBreak1249 Ignoring protrusion settings for this character}%1250 }Furthermore, we might have to multiply with a factor.1251 \def\MT@scale@factor{%1252 \ifnum\csname MT@\MT@feat @factor@\endcsname=\@m \else1253 \expandafter\MT@scale\expandafter \@tempcntb1254 \csname MT@\MT@feat @factor@\endcsname \@m1255 \fi1256 \ifnum\@tempcntb>\csname MT@\MT@feat @max\endcsname\relax

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!