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?

Background;

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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment