Friday, November 22, 2013

Get font-family from external css?

Is it possible to get the font information set by a Class (ie, not on the element directly).
I assume it can be done by looking at the Css file and sort-of parsing it for the information needed.....but this seems a bit of a thudge.
Is there a better method?


I would like to get the font information at run time so I can recreate the look of a bit of text in a canvas object.  I wish to keep the css file editable, and not burnt into the project as a bundle. (Its a fairly small project, not concerned with loading times)

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment