10.07.2015 Views

The microtype package

The microtype package

The microtype package

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

IMPLEMENTATION: Font setup 54895 896 }897 We need a font (the minimal class doesn’t load one).898 \expandafter\ifx\the\font\nullfont\normalfont\fi14.2 Font setup\MT@setupfontSetting up a font entails checking for each feature whether it should be applied tothe current font (\MT@font). But first, we might have to disable stuff when usedtogether with adventurous <strong>package</strong>s.899 900 \def\MT@setupfont{\MT@setupfont@hook}This will use a copy of the font (allowing for expansion parameter variation andthe use of more than one set of protrusion factors for a font within one paragraph).901 \MT@requires@pdftex7{902 \g@addto@macro\MT@setupfont\MT@copy@font903 }\relax<strong>The</strong> font properties must be extracted from \MT@font, since the current value of\f@encoding and friends may be wrong!904 \g@addto@macro\MT@setupfont{%905 \MT@exp@two@c\MT@split@name\string\MT@font/\@nilTry to find a configuration file for the current font family.906 \MT@exp@one@n\MT@find@file\MT@family907 \ifx\MT@familyalias\@empty \else908 \MT@exp@one@n\MT@find@file\MT@familyalias\fiWe have to make sure that \cf@encoding expands to the correct value (for later, in\MT@get@slot), which isn’t the case when \selectfont chooses a new encoding(this would be done a second later in \selectfont, anyway – three lines, to beexact). (I think, I do not need this anymore – however, I’m too afraid to remove it.. . . Oops, I did it. Let’s see whether anybody complains.)909 % \ifx\f@encoding\cf@encoding\else\@@enc@update\fi910 }Tracking has to come first, since it means actually loading a different font.911 \MT@requires@pdftex6912 \MT@requires@luatex3913 {\g@addto@macro\MT@setupfont\MT@tracking}\relax914 \g@addto@macro\MT@setupfont{%915 \MT@check@font916 \ifMT@inlist@917 \MT@show@pdfannot2%918 \else919 \MT@vinfo{Setting up font `\MT@@font’\on@line}%Now we can begin setting up the font for all features that the current pdfTEXprovides. <strong>The</strong> following commands are \let to \relax if the respective feature isdisabled via <strong>package</strong> options.For versions older than 1.20, protrusion has to be set up first, beginning with1.20, the order doesn’t matter.920 \MT@protrusion921 \MT@expansion922 }Interword spacing and kerning (pdfTEX 1.40).

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

Saved successfully!

Ooh no, something went wrong!