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 55\MT@copy@font\MT@copy@font@\MT@font@copy\MT@font@orig923 924 \MT@requires@pdftex6{925 \g@addto@macro\MT@setupfont{\MT@spacing\MT@kerning}926 }\relax927 Disable ligatures (pdfTEX 1.30).928 \MT@requires@pdftex5{929 \g@addto@macro\MT@setupfont\MT@noligatures930 }\relax931 \g@addto@macro\MT@setupfont{%Debugging.932 \MT@show@pdfannot1%Finally, register the font so that we don’t set it up anew each time.933 \MT@register@font934 \fi935 }936 <strong>The</strong> new (1.40.4) \pdfcopyfont command allows expanding a font with differentparameters, or to use more than one set of protrusion factors for a given fontwithin one paragraph. It will be used when we find a context for \SetProtrusionor \SetExpansion in the preamble, or when the <strong>package</strong> has been loaded with thecopyfonts option.937 938 \let\MT@copy@font\relax939 \MT@requires@pdftex7{940 \def\MT@copy@font@{%For every new protrusion and expansion context, we create a new copy.941 \xdef\MT@font@copy{\csname\MT@@font/\MT@pr@context/\MT@ex@context\endcsname}%pdfTEX doesn’t allow copying a font that has already been copied and expanded/letterspaced. Hence, we have to get the original.942 \expandafter\ifx\MT@font@copy\relax943 \edef\MT@font@orig{\csname\expandafter\string\font@name @orig\endcsname}%944 \expandafter\ifx\MT@font@orig\relax945 \MT@exp@two@c\MT@glet\MT@font@orig\font@name946 \else947 \MT@exp@two@c\let\font@name\MT@font@orig948 \fi949 \global\MT@exp@two@c\pdfcopyfont\MT@font@copy\font@name950 \MT@dinfo1{creating new copy: \MT@font@copy}%Since it’s a new font, we have to remove it from the context lists.951 \MT@map@clist@c\MT@active@features{%952 \MT@exp@cs\ifx{MT@\@nameuse{MT@abbr@##1}}\relax\else953 \def\@tempa{##1}%954 \MT@exp@cs\MT@map@tlist@c{MT@##1@doc@contexts}\MT@rem@from@list955 \fi956 }%957 \fi958 \MT@exp@two@c\let\MT@font\MT@font@copyWe only need the font identifier for letterspacing.959 \let\font@name\MT@font@copyBut we have to properly substitute the font after we’re done.960 \aftergroup\let\aftergroup\font@name\aftergroup\MT@font@copy961 }

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

Saved successfully!

Ooh no, something went wrong!