Re: [selectors4][css3-text] Plaintext Fallback Characters

Tab Atkins Jr. wrote:

> The best way is to type it as "<span>1 2/3</span>", and apply a font
> with the appropriate ligatures to display the 2/3 specially.  That
> doesn't remove the space, but it's at least very simple.

Most OT fonts contain <frac> feature support, which may be implemented 
either by ligatures, as you note, or by contextual substitutions of 
numerator and denominator glyph. The latter approach is better because 
it allows for arbitrary fractions. Adobe published the OTL code that 
they use for the <frac> feature contextual lookups, so this has been 
implemented quite widely by font makers.


JH

Received on Wednesday, 21 December 2011 03:06:30 UTC