Hagen - Pragma ADE

Hagen - Pragma ADE Hagen - Pragma ADE

context.aanhet.net
from context.aanhet.net More from this publisher
13.07.2013 Views

60 Features accumulate within a word. 1 3 2 6 5.2.4 Single substitution Single substitutions are probably the most used ones. For instance, when you ask for small caps, a lot of glyphs get replaced. When using oldstyle numerals only digits get replaced but even then each glyph has to be checked. This can be demonstrated with the Latin Modern fonts. $123.45 $123.45 As you can see here, Latin Modern has an oldstyle dollar sign. If you don’t like that one, you’re in troubles as it comes with the rest of the oldstyles. The only way out is to apply the oldstyle numerals to digits only which involves more tagging than you might be willing to add. So, whenever you choose a substitution, be aware that you have not that much control over what gets substituted: it’s the font that drives it. Here are some examples: \definefontfeature[capsandold][smallcaps,oldstyle] \showotfcomposition{dejavu-serif*capsandold at 24pt}{}{It's 2013!} \showotfcomposition{cambria*capsandold at 24pt}{}{It's 2013!} \showotfcomposition{lmroman10regular*capsandold at 24pt}{}{It's 2013!} \showotfcomposition{texgyrepagellaregular*capsandold at 24pt}{}{It's 2013!} font 61: DejaVuSerif.ttf @ 24.0pt features analyze=yes, curs=yes, devanagari=yes, extrafeatures=yes, kern=yes, liga=yes, mark=yes, mkmk=yes, mode=node, onum=yes, script=dflt, smcp=yes, tlig=yes, trep=yes step 1 It's 2013! U+49:I U+74:t U+27:' U+73:s [glue] U+32:2 U+30:0 U+31:1 U+33:3 U+21:! feature 'trep', lookup 'ctx_trep_1_1', replacing U+00027 (quotesingle) by single U+02019 (quoteright)

esult It’s 2013! U+49:I U+74:t U+2019:’ U+73:s [glue] U+32:2 U+30:0 U+31:1 U+33:3 U+21:! font 62: cambria.ttf @ 24.0pt features analyze=yes, curs=yes, devanagari=yes, extrafeatures=yes, kern=yes, liga=yes, mark=yes, mkmk=yes, mode=node, onum=yes, script=latn, smcp=yes, tlig=yes, trep=yes step 1 It's 2013! U+49:I U+74:t U+27:' U+73:s [glue] U+32:2 U+30:0 U+31:1 U+33:3 U+21:! feature 'smcp', lookup 'ss_l_7_s', replacing U+00074 (t) by single U+F0016 (T.c2sc) feature 'smcp', lookup 'ss_l_7_s', replacing U+00073 (s) by single U+F0015 (S.c2sc) step 2 IT'S 2013! U+49:I U+F0016:T U+27:' U+F0015:S [glue] U+32:2 U+30:0 U+31:1 U+33:3 U+21:! feature 'onum', lookup 'ss_l_23_s', replacing U+00032 (two) by single U+F0148 (two.oldstyle) feature 'onum', lookup 'ss_l_23_s', replacing U+00030 (zero) by single U+F0146 (zero.oldstyle) feature 'onum', lookup 'ss_l_23_s', replacing U+00031 (one) by single U+F0147 (one.oldstyle) feature 'onum', lookup 'ss_l_23_s', replacing U+00033 (three) by single U+F0149 (three.oldstyle) step 3 IT'S 2013! U+49:I U+F0016:T U+27:' U+F0015:S [glue] U+F0148:2 U+F0146:0 U+F0147:1 U+F0149:3 U+21:! feature 'trep', lookup 'ctx_trep_1_1', replacing U+00027 (quotesingle) by single U+02019 (quoteright) result IT’S 2013! U+49:I U+F0016:T U+2019:’ U+F0015:S [glue] U+F0148:2 U+F0146:0 U+F0147:1 U+F0149:3 U+21:! font 63: lmroman10-regular.otf @ 24.0pt 61 Features

60<br />

Features<br />

accumulate within a word.<br />

1<br />

3<br />

2<br />

6<br />

5.2.4 Single substitution<br />

Single substitutions are probably the most used ones. For instance, when you ask for<br />

small caps, a lot of glyphs get replaced. When using oldstyle numerals only digits get<br />

replaced but even then each glyph has to be checked. This can be demonstrated with<br />

the Latin Modern fonts.<br />

$123.45 $123.45<br />

As you can see here, Latin Modern has an oldstyle dollar sign. If you don’t like that<br />

one, you’re in troubles as it comes with the rest of the oldstyles. The only way out is to<br />

apply the oldstyle numerals to digits only which involves more tagging than you might<br />

be willing to add. So, whenever you choose a substitution, be aware that you have not<br />

that much control over what gets substituted: it’s the font that drives it. Here are some<br />

examples:<br />

\definefontfeature[capsandold][smallcaps,oldstyle]<br />

\showotfcomposition{dejavu-serif*capsandold at 24pt}{}{It's 2013!}<br />

\showotfcomposition{cambria*capsandold at 24pt}{}{It's 2013!}<br />

\showotfcomposition{lmroman10regular*capsandold at 24pt}{}{It's 2013!}<br />

\showotfcomposition{texgyrepagellaregular*capsandold at 24pt}{}{It's 2013!}<br />

font 61: DejaVuSerif.ttf @ 24.0pt<br />

features analyze=yes, curs=yes, devanagari=yes, extrafeatures=yes,<br />

kern=yes, liga=yes, mark=yes, mkmk=yes, mode=node, onum=yes,<br />

script=dflt, smcp=yes, tlig=yes, trep=yes<br />

step 1 It's 2013! U+49:I U+74:t U+27:' U+73:s [glue]<br />

U+32:2 U+30:0 U+31:1 U+33:3 U+21:!<br />

feature 'trep', lookup 'ctx_trep_1_1', replacing U+00027<br />

(quotesingle) by single U+02019 (quoteright)

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

Saved successfully!

Ooh no, something went wrong!