Hagen - Pragma ADE
Hagen - Pragma ADE
Hagen - Pragma ADE
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
76<br />
Features<br />
{ name = "msbm10.tfm", vector = "tex-mb" },<br />
},<br />
Normally users will not define such tables but the keys give an indication of what is<br />
involved. The same is true for the previously shown tables: they are just provided in the<br />
ConT E Xt distribution.<br />
Text fonts also can have goodies. We start with a rather dumb one and there will be<br />
not that many of those. This one is needed to turn a Type1 font with a rather special<br />
encoding into a Unicode font. The next mapping is possible because the dingbats are<br />
part of Unicode.<br />
return {<br />
name = "dingbats",<br />
version = "1.00",<br />
comment = "Goodies that complement dingbats (funny names).",<br />
author = "Hans <strong>Hagen</strong>",<br />
copyright = "ConTeXt development team",<br />
remapping = {<br />
tounicode = true,<br />
unicodes = {<br />
a1 = 0x2701,<br />
a10 = 0x2721,<br />
a100 = 0x275E,<br />
a101 = 0x2761,<br />
a102 = 0x2762,<br />
Applying this encoding happens in two steps. Because goodies like this are just features,<br />
we need to define a proper font feature set:<br />
\definefontfeature<br />
[dingbats]<br />
[mode=base,<br />
goodies=dingbats,<br />
unicoding=yes]<br />
We have a base mode font, so no special processing takes place. The goodies key is used<br />
to communicate the goodies file. The unicoding key is used to apply the encoding. Of<br />
course this only works because the remapper code is present in the core and is hooked<br />
in to the font initialization code. The dingbats feature set is predefined, just as the font<br />
definition:<br />
\definefontsynonym [ZapfDingbats] [file:uzdr] [features=dingbats]<br />
Here is a goodie file that I made a while ago:<br />
return {