13.07.2013 Views

Hagen - Pragma ADE

Hagen - Pragma ADE

Hagen - Pragma ADE

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.

78<br />

Features<br />

\starttypescript[somefontset]<br />

\definetypeface [somefontset] [rm] [serif] [someserif] [default]<br />

\definetypeface [somefontset] [ss] [sans] [somesans] [default]<br />

\definetypeface [somefontset] [tt] [mono] [somemono] [default]<br />

\definetypeface [somefontset] [mm] [math] [somemath] [default]<br />

\stoptypescript<br />

So far things look simple. Given that many fonts follow a similar naming scheme Wolfgang<br />

made a module that avoids such definitions altogether. However, being involved<br />

in the development of the Antykwa fonts, Mojca ran into the situation that not just four<br />

fonts were part of the set but many more. There are several weight (think of light and<br />

heavy variants) as well as condensed variants and of course the whole set is not per se<br />

a multiple of four.<br />

In the meantime, in addition to the file: and name: accessors, ConT E Xt had an<br />

additional one tagged spec: where a string made out of weight, style, width etc. is<br />

turned into a (best guessed) font name. Therefore the most natural way to deal with<br />

the many-fonts-in-a-set dilemma was to provide an additional interface between this<br />

specification and the font set and the most robust method was to define all in a goodie<br />

file.<br />

In this case the goodies are loaded independent of the font, that is: not as a feature.<br />

For instance:<br />

\loadfontgoodies[antykwapoltawskiego]<br />

This file maps obscure fontnames onto the spec: interface so that we can access them<br />

in a robust way.<br />

\definefont<br />

[MyFontA]<br />

[file:Iwona-Regular*smallcaps]<br />

\definefont<br />

[MyFontB]<br />

[file:AntykwaTorunska-Regular*smallcaps]<br />

\definefont<br />

[MyFontC]<br />

[file:antpoltltcond-regular*smallcaps]<br />

\definefont<br />

[MyFontD]<br />

[spec:antykwapoltawskiego-bold-italic-condensed-normal*smallcaps]<br />

\definefont<br />

[MyFontE]<br />

[spec:antykwapoltawskiego-bold-italic-normal]<br />

The goodies file looks as follows:<br />

return {

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

Saved successfully!

Ooh no, something went wrong!