Hagen - Pragma ADE
Hagen - Pragma ADE Hagen - Pragma ADE
82 Features } normalweight = "extralight", boldweight = "semilight" }), ["themix-light"] = table.merged(themix, { normalweight = "light", boldweight = "normal" }), ... ["themixmono-bold"] = table.merged(themixmono, { normalweight = "bold", boldweight = "black" }), }, It’s now time for some generic goodies. In the ConT E Xt distribution there is a goodie file that (at the time of this writing) looks as follows: local default = { analyze = "yes", mode = "node", language = "dflt", script = "dflt", } local smallcaps = { smcp = "yes", } local function statistics(tfmdata) commands.showfontparameters(tfmdata) end local function squeeze(tfmdata) for k, v in next, tfmdata.characters do v.height = 0.75 * (v.height or 0) v.depth = 0.75 * (v.depth or 0) end end return { name = "demo", version = "1.01", comment = "An example of goodies.", author = "Hans Hagen",
} featuresets = { default = { default, }, smallcaps = { default, smallcaps, }, }, colorschemes = { default = { [1] = { "one", "three", "five", "seven", "nine", }, [2] = { "two", "four", "six", "eight", "ten", }, }, all = { [1] = { "*", }, }, some = { [1] = { "0x0030:0x0035", }, }, }, postprocessors = { statistics = statistics, squeeze = squeeze, }, This demo file implements several goodies: featuresets, colors and postprocessors. Keep in mind that a goodie file can provide whatever information it wants but of course only known subtables will be dealt with. The coloring of glyphs can happen by name, which assumes that glyph names are used, or by number. Here we use generic glyph names, but for a specific font one might need to provide a special goodie file. For instance, the color section of the goodie file for the husayni font has entries like: [3] = { "Ttaa.waqf", "SsLY.waqf", "QLY.waqf", "Miim.waqf", "LA.waqf", "Jiim.waqf", "Threedotsabove.waqf", "Siin.waqf", "Ssaad.waqf", "Qaaf.waqf", "SsL.waqf", 83 Features
- Page 34 and 35: 32 Modes glyph 256 font 33: U+00061
- Page 36 and 37: 34 Modes glyph 256 font 33: U+00065
- Page 38 and 39: 36 Modes optimizer that can apply a
- Page 40 and 41: 38 Modes ا خLJَ﮲ ف﮲َ step
- Page 42 and 43: 40 Modes dir +TRT glyph 256 font 49
- Page 44 and 45: 42 Modes and now we get: 123 normal
- Page 46 and 47: 44 Modes MkIV run can be faster tha
- Page 48 and 49: 46 Lookups \font \MyFontG = lmr12 s
- Page 50 and 51: 48 Lookups 3.4 Name Say that we wan
- Page 52 and 53: 50 Lookups We add another specifier
- Page 54 and 55: 52 Methods \definefont [MyFont] [Bo
- Page 56 and 57: 54 Methods } copyright = "ConTeXt d
- Page 58 and 59: 56 Features of all, all we get to s
- Page 60 and 61: 58 Features in base mode. A single
- Page 62 and 63: 60 Features accumulate within a wor
- Page 64 and 65: 62 Features features analyze=yes, c
- Page 66 and 67: 64 Features \definedfont[lmroman10-
- Page 68 and 69: 66 Features single substitutions or
- Page 70 and 71: 68 F -0.492 eatures result ffi feat
- Page 72 and 73: 70 Features font 80: lmroman10-regu
- Page 74 and 75: 72 Features font 46: cambria.ttf @
- Page 76 and 77: 74 Features } } This goodie file is
- Page 78 and 79: 76 Features { name = "msbm10.tfm",
- Page 80 and 81: 78 Features \starttypescript[somefo
- Page 82 and 83: 80 Features \setupbodyfont [mojcasf
- Page 86 and 87: 84 Features "QF.waqf", "SKTH.waqf",
- Page 88 and 89: 86 Features featureset=smallcaps] O
- Page 90 and 91: 88 Features } }, When defining the
- Page 92 and 93: 90 Features local defaultfraction =
- Page 94 and 95: 92 Features } } ["LMRoman-Bold"] =
- Page 96 and 97: 94 Features In fact, in addition to
- Page 98 and 99: 96 Features } This time the applica
- Page 100 and 101: 98 Features step 1 I don't wanna kn
- Page 102 and 103: 100 Features If you’re lucky your
- Page 104 and 105: 102 Scripts
- Page 121 and 122: However, when we go the other way,
- Page 124: 122 Math the regular a--z character
- Page 127 and 128: While there are lots of text fonts,
- Page 129 and 130: 8 Extensions 8.1 Introduction One o
- Page 131: [default] [itlc=5] This is demonstr
82<br />
Features<br />
}<br />
normalweight = "extralight",<br />
boldweight = "semilight"<br />
}),<br />
["themix-light"] = table.merged(themix, {<br />
normalweight = "light",<br />
boldweight = "normal"<br />
}),<br />
...<br />
["themixmono-bold"] = table.merged(themixmono, {<br />
normalweight = "bold",<br />
boldweight = "black"<br />
}),<br />
},<br />
It’s now time for some generic goodies. In the ConT E Xt distribution there is a goodie file<br />
that (at the time of this writing) looks as follows:<br />
local default = {<br />
analyze = "yes",<br />
mode = "node",<br />
language = "dflt",<br />
script = "dflt",<br />
}<br />
local smallcaps = {<br />
smcp = "yes",<br />
}<br />
local function statistics(tfmdata)<br />
commands.showfontparameters(tfmdata)<br />
end<br />
local function squeeze(tfmdata)<br />
for k, v in next, tfmdata.characters do<br />
v.height = 0.75 * (v.height or 0)<br />
v.depth = 0.75 * (v.depth or 0)<br />
end<br />
end<br />
return {<br />
name = "demo",<br />
version = "1.01",<br />
comment = "An example of goodies.",<br />
author = "Hans <strong>Hagen</strong>",