Hagen - Pragma ADE
Hagen - Pragma ADE
Hagen - Pragma ADE
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
128<br />
Extensions<br />
test test<br />
Dejavu Regular Dejavu Italic<br />
Figure 8.2 Italic overshoot in Dejavu Serif.<br />
This means that the application of italic correction should never been applied without<br />
knowing the font. In figure 8.3 we see an upright word following an italic. The space is<br />
determined by the upright one.<br />
test test test test<br />
Latin Modern Dejavu<br />
Figure 8.3 Italic followed by upright.<br />
Because it is to be used with care you need to enable this feature per font, You also<br />
need to explicitly enable the application of this correction. in figure 8.4 we see italic<br />
correction in action.<br />
\definefontfeature<br />
[italic]<br />
[default]<br />
[itlc=yes]<br />
test test test test<br />
test test test test<br />
Figure 8.4 Italic correction.<br />
This only signals the font constructor that additional italic information has to be added<br />
to the font metrics. As we already mentioned, the application of correction is driven by<br />
the \/ primitive and that one consults the font metrics. Because the correction is not<br />
part of the original font metrics it is calculated automatically by adding a small value to<br />
the width. This value is calculated as follows:<br />
factor * (parameters.uwidth or 40) / 2<br />
The uwidth parameter is sometimes part of the specification but if not, we take a reasonable<br />
default. The factor is under user control:<br />
\definefontfeature<br />
[moreitalic]