You can easily include Google Fonts in your Foobar by folowing these simple steps:
- Browse to the Google webfonts homepage and choose a font you like
- Click on the quick use link under the font you like
- Scroll down and click on the javascript tab to show you some javascript code. Select all the code within the script tags and copy to your clipboard
- Create a new Foobar and in the Custom JS metabox, simply paste that javascript code. For example :
WebFontConfig = {
google: { families: [ 'Courgette::latin' ] }
};
(function() {
var wf = document.createElement('script');
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
'://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
wf.type = 'text/javascript';
wf.async = 'true';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(wf, s);
})(); - In the Custom CSS metabox, add 1 line of css code to use the new Google font:
.foobar-message-wrapper { font-family: 'Courgette' !important} - Customize the Foobar to your liking as before and you are all done!

