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.

}<br />

name = "oxoniensis",<br />

version = "1.00",<br />

comment = "Oxoniensis test file for Thomas Schmitz.",<br />

author = "Hans <strong>Hagen</strong>",<br />

copyright = "ConTeXt development team",<br />

features = {<br />

lunatesigma = {<br />

type = "substitution",<br />

data = {<br />

sigma = 0x03F2,<br />

sigma1 = 0x03F2,<br />

Sigma = 0x03F9,<br />

phi = phi1,<br />

},<br />

}<br />

},<br />

There is not that much to say about this, apart from that it’s a sort of fake feature that<br />

gets enabled as regular one:<br />

\definefontfeature[test]<br />

[mode=node,<br />

kern=yes,<br />

lunatesigma=yes,<br />

goodies=oxoniensis]<br />

\definefont[somefont][file:oxoniensis*test]<br />

A complete different kind of goodie is the following. At one of the ConT E Xt meetings<br />

Mojca Miklavec discussed the possibility to have an additional mechanism for defining<br />

combinations of fonts. Often fonts come in a set of four (regular, italic, bold and bold<br />

italic). In MkII the complexity of typescripts depends on the amount of encodings that<br />

need to be supported but in MkIV things are easier. For a set of four fonts a typescript<br />

looks as follows:<br />

\starttypescript [sans] [somesansfont] [name]<br />

\setups[font:fallback:sans]<br />

\definefontsynonym [Sans] [file:somesans] [features=default]<br />

\definefontsynonym [SansBold] [file:somesansb] [features=default]<br />

\definefontsynonym [SansItalic] [file:somesansi] [features=default]<br />

\definefontsynonym [SansBoldItalic] [file:somesansz] [features=default]<br />

\stoptypescript<br />

We still have the abstract notion of a Sans font so that we can refer to the regular shape<br />

without knowing the real name but the number of lines needed is small. Such a definition<br />

can then be referred to using:<br />

77<br />

Features

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

Saved successfully!

Ooh no, something went wrong!