[whatwg] Timed tracks: feedback compendium

Alex Bishop alexbishop at gmail.com
Tue Jan 4 11:13:10 PST 2011


On 03/01/2011 15:57, Philip Jägenstedt wrote:
>>> There was also some discussion about metadata. Language is sometimes
>>> necessary for the font engine to pick the right glyph.
>>
>> Could you elaborate on this? My assumption was that we'd just use CSS,
>> which doesn't rely on language for this.
>
> It's not in any spec that I'm aware of, but some browsers (including
> Opera) pick different glyphs depending on the language of the text,
> which really helps when rendering CJK when you have several CJK fonts on
> the system. Browsers will already know the language from <track
> srclang>, so this would be for external players.

Firefox too. If you visit 
http://people.mozilla.org/~jdaggett/webfonts/serbianglyphs.html in 
Firefox 4, the text explicitly marked-up as being Serbian Cyrillic 
(using the lang="sr-Cyrl" attribute) uses some different glyphs to the 
text with no language metadata.

Alex

-- 
Alex Bishop
alexbishop at gmail.com



More information about the whatwg mailing list