So I just made a Firebug addon to do this: https://addons.mozilla.org/en-US/firefox/addon/111672, 'FireFontFamily'.
It would be great to have this in Firebug, obviously, and I looked into it but there are a couple issues with that. The method I use to get which font-family is being used is a total hack: http://github.com/harthur/firefontfamily/blob/master/chrome/content/overlay.js#L89, basically, it tries each font in the font stack on a canvas, finding out which one changes the width of the text. A few other addons use something like this to find the rendered font. There's a really tiny chance it could be incorrect in some cases, and that's probably okay for an extension, but probably not okay for Firebug. I think Firebug would have to wait for https://bugzilla.mozilla.org/show_bug.cgi?id=467669 to be fixed. Also, it would increase the complexity of the CSS code, parsing property values, you'd at least need some kind of IF/ELSE domplate tag (that doesn't exist, correct me if I'm wrong). but it might be good to have that ability, as there are other uses for parsing and breaking up the property value, like if a 'font-family' declaration overrides only part of a 'font' declaration and you want to line-through only that part. -- You received this message because you are subscribed to the Google Groups "Firebug" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/firebug?hl=en.
