- From: Boris Zbarsky <bzbarsky@MIT.EDU>
- Date: Wed, 03 Feb 2010 14:03:07 -0500
- To: rfink@readableweb.com
- CC: "'CSS WG'" <www-style@w3.org>
On 2/3/10 1:46 PM, Richard Fink wrote: > The confusion for me, with computedStyle is that it reflects the CSS and not the actual choice that the browser is making. > For example, a rule with a font stack like this: p{font-family: georgia, serif;} requires the UA to choose. Note that the choice is made on a per-character basis, though. So nothing reported for the <p> itself could capture any sort of useful information regarding the font choices. > I need to be able to query to see if it's Georgia or the default serif. Or neither, if neither has a glyph for the character, right? > Getting a return value of "Georgia, serif", doesn't do me a whole lot of good. Well... what are you trying to actually do? > To extend the example: right now, the only way to know if a given font has loaded is based on the font's metrics. What do you mean by "a given font has loaded"? What information are you _really_ trying to get out here? Whether the user has a font named "Georgia" installed on his system, no matter what the actual font data under that name? Whether the user has a specific font of some sort available (which one?)? Something else? -Boris
Received on Wednesday, 3 February 2010 19:03:46 UTC