W3C home > Mailing lists > Public > www-style@w3.org > December 2011

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

From: John Hudson <tiro@tiro.com>
Date: Tue, 20 Dec 2011 19:05:52 -0800
Message-ID: <4EF14D10.3090006@tiro.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: Christoph P├Ąper <christoph.paeper@crissov.de>, www-style list <www-style@w3.org>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:47 GMT