Changes

Jump to navigation Jump to search
19 bytes removed ,  13:25, 9 August 2020
m
Text replacement - "</cmd>" to "}}"
< [[Fonts]]
 
FlexiFace is a system I've been playing with for a few months on and off. Basically, it's to get around the difficulty of creating typefaces for every combination of fonts. It combines typescripts based on just one parameter&mdash;x-height&mdash;because other parameters (e.g., italic slant, color/weight) are really hard to quantify, and are best left to the typographer's artistry.
Currently, I normalise all fonts to match with Computer Modern Roman's x-height, which is 5.16667 points for a font size of 12 pt. Seeing that that was a little small, I implemented a variation for larger-eyed fonts, where all fonts are normalised around an x-height of 6.0 pt for the same body font size. Following me yet? How about this:
: When you use <{{cmd>|setupbodyfont[flex]</cmd>}}, you get the typescripts you called previously, accessible as <tt>rm</tt>, <tt>ss</tt>, etc. (as appropriate), all relatively scaled so that their x-height matches up with that of CMR.
Okay then, how about an example. Given the following in a typescript that gets loaded:
</texcode>
...and you get Palatino (serif and math) with Helvetica, both scaled to a compatible x-height. That seems more complex than necessary, given a one-time use, but the power behind FlexiFace lies in the endless combinations, and that it's embedded in the natural <{{cmd>|usetypescript</cmd> }} calls. Once it's set up, you only need to worry about calling one typeface/bodyfont.
Some side-effects to watch out for:
* The typeface doesn't make <tt>rm</tt> the default, so watch out. It's best to put 'rm' (or your choice) into the <{{cmd>|setupbodyfont</cmd> }} call, as above. (Hans points out that <{{cmd>|setuptypeface[flex][default=rm]</cmd> }} is just as effective, and it's probably better in a local config file.)
* An x-height to match CMR is a bit small for most fonts&mdash;and it can distort the actual size of the font&mdash;so either be aware of this global rescaling (e.g., the &ldquo;12pt&rdquo; Palatino above actually comes out at 10.92pt after scaling) or use the <tt>flex2</tt> alternative.
* This system depends on a &ldquo;correct&rdquo; ConTeXt font installation&mdash;it doesn't manage any magic if you haven't run TeXfont or use the berry typescripts.
</texcode></small>
[[Category:FontsOld_Content]]

Navigation menu