Wednesday, September 24, 2014

Re: Webfonts with ClientBundle, UiBinder

Success! Thank you. My CSS now starts with

@url fawoff woff;
@font-face{font-family:'FontAwesome';
  src: fawoff format('woff');
  font-weight:normal;font-style:normal}
  .fa{display:inline-block;font:normal ...

and the icon is there. Thank you. Once I flesh out my ClientBundle I'll be able add icons as needed from code or via UiBinder.

Interesting item: This change did not work at first when I simply stopped and started SDM (Dev Mode Off, Dev Mode On). However I was desperate so I stopped RunJettyRun in Eclipse and SDM in the terminal, and ran `gradle clean jettyDraftWar` for a complete rebuild. Only after that did the icon appear. Things like that are gonna make me paranoid. :)

On Wednesday, September 24, 2014 11:42:18 AM UTC-4, Jens wrote:

@font-face{
  font-family:'FontAwesome';
  @url fawoff woff?v=4.2.0;
  font-weight:normal;font-style:normal}
 .fa{display:inline-block;font:normal ... 

I guess it should be

@url fawoff woff;
@font-face {
   font-family: 'FontAwesome'
   src: fawoff format('woff') /* fawoff should be replaced with url of DataResource woff() */
   font-weight: normal;
   font-style: normal;


-- J.

--
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/d/optout.

No comments:

Post a Comment