On Tuesday, August 21, 2012 2:37:17 PM UTC+2, Thomas Broyer wrote:
>
>
>
> On Tuesday, August 21, 2012 2:33:05 PM UTC+2, Andrey Korzhevskiy wrote:
>>
>> Is there a way to embed font file into css via data-uri just like @sprite 
>> does it to embed images?
>
>
> Sure: use a DataResource and the @url CssResource @-rule.
>
> https://developers.google.com/web-toolkit/doc/latest/DevGuideClientBundle#DataResource
>
> https://developers.google.com/web-toolkit/doc/latest/DevGuideClientBundle#References_to_Data_Resources
>

Note you'll have to use GWT 2.5.0-rc1 to be able to use @font-face in a 
CssResource, see 
http://code.google.com/p/google-web-toolkit/issues/detail?id=5247 (and note 
how I made the exact same answer there a couple months back ;-) ) 

-- 
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/-/_IFG305Q3qMJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to