Best way to use webfonts in GWT?
The GWT CSS (clean.css, chrome.css, etc) all have a ton of the following:
.gwt-TextBox {
font-family: Arial Unicode MS,Arial,sans-serif;
}
What is the best way to overwrite these strange classes with a webfront family, so that it will conflict as little as possible with future GWT releases?
Options seem to be:
1) Subclass Textboxt and other standard widgets, and add a 'addClassName' with custom font class in the constructor.
2) Copy the clean.css file to gwt, and use a css resource with @NotStrict annotation
Any other methods that are nicer?
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/pvVGnx_cY1oJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home