Google Web Font

I can’t find any info regarding the use of Google Web Fonts in Vaadin 7. The Vaadin 6 approach (https://vaadin.com/wiki/-/wiki/Main/Web+Fonts) doesn’t appear to apply anymore. I found a similar method (BootstrapHandler.writeBootstrapPageHtmlHeader()), but wasn’t sure if that was the new path? Or is there some way of using annotations? Any info would be greatly appreciated!

Yes, you can use annotations for achieving the same effect in Vaadin 7 alpha 3. You should add something like @StyleSheet(“http://fonts.googleapis.com/css?family=Cabin+Sketch”) to your Root class.

We are also about to add more generic support for fiddling with the bootstrap page HTML that will also let you do other things than including scripts and stylesheets, but those features are still only on the drawing board.

Worked as expected. Thanks for the simple answer and additional info.