You can use embeddable fonts in your vBulletin 5 style as long as the browser in use supports it. Browsers that support Embeddable Fonts include IE 9, IE10, Chrome, Safari, and Firefox. Older versions of IE can support Embedded Fonts using a proprietary font format from Microsoft.
To use these fonts follow the instructions for your version.
All Versions of vBulletin 5
Go to Google's Webfont site and find the Fonts you want to use. A popular one is Open Sans. If you want to use multiple fonts, click "Add to Collection". If you just want to use one font, click "Quick Use". We're going to use Quick Use.
Google will provide the different varieties of the check the varieties you want. Google also shows a meter on the top right that estimates the load of your font package. Embeddable Fonts need to be downloaded by the end user when they visit, though they can be cached as well. In order to provide some font variety, I have selected Normal 400, Normal 400 Italic, Bold 700, and Bold 700 Italic. Increases the load time a little but provides a lot of flexibility.
After selecting your varieties, scroll down on the page and you'll see the code you need to embed the fonts on your site. You'll need to copy this code for inclusion in your forums. For our Open Sans example the code looks like this:
Using Google Webfonts in vBulletin 5.1.4 and later.
Now that you have your code, you need to log into the AdminCP of your vBulletin 5.1.4 installation. Once logged in go to Styles & Templates -> Style Manager. Click on the «» button on the far right to expand the template list. Next double click on CSS Templates to open that group. Now double-click on css_font.css to edit it. Place your Google Web Font code within this. Save this template.
Go into the Style Variable Editor for your style and find the stylevar body_font. At the beginning of the font family line add:
The quotes are required. Save this variable and all the fonts on your site will update automatically.
Using Google Webfonts in versions before 5.1.4
Now that you have your code, you need to log into the AdminCP of your vBulletin 5 installation. Once logged in go to Styles & Templates -> Style Manager. Click on the «» button on the far right to expand the template list. Next double click on CSS Templates to open that group. Now double-click on css_additional.css to edit it. Place your Google Web Font code as the first line in this template. Save this template.
Go into the Style Variable Editor for your style and find the stylevar body_font. At the beginning of the font family line add:
The quotes are required. Save this variable and all the fonts on your site will update automatically.
Creating Styles with Fonts.
If you're a style designer you can also use these methods to include your own fonts with the style. Make sure to include the distributable font files in your style package and use the appropriate CSS to include your fonts in either the css_fonts.css (preferred method) or css_additional.css templates. You can find out more about embedding fonts here: http://www.w3schools.com/css/css3_fonts.asp
I suggest experimenting and playing with different classes until you get the results you're looking for.
To use these fonts follow the instructions for your version.
All Versions of vBulletin 5
Go to Google's Webfont site and find the Fonts you want to use. A popular one is Open Sans. If you want to use multiple fonts, click "Add to Collection". If you just want to use one font, click "Quick Use". We're going to use Quick Use.
Google will provide the different varieties of the check the varieties you want. Google also shows a meter on the top right that estimates the load of your font package. Embeddable Fonts need to be downloaded by the end user when they visit, though they can be cached as well. In order to provide some font variety, I have selected Normal 400, Normal 400 Italic, Bold 700, and Bold 700 Italic. Increases the load time a little but provides a lot of flexibility.
After selecting your varieties, scroll down on the page and you'll see the code you need to embed the fonts on your site. You'll need to copy this code for inclusion in your forums. For our Open Sans example the code looks like this:
Code:
@import url(http://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700);
Now that you have your code, you need to log into the AdminCP of your vBulletin 5.1.4 installation. Once logged in go to Styles & Templates -> Style Manager. Click on the «» button on the far right to expand the template list. Next double click on CSS Templates to open that group. Now double-click on css_font.css to edit it. Place your Google Web Font code within this. Save this template.
Go into the Style Variable Editor for your style and find the stylevar body_font. At the beginning of the font family line add:
Code:
"Open Sans",
Using Google Webfonts in versions before 5.1.4
Now that you have your code, you need to log into the AdminCP of your vBulletin 5 installation. Once logged in go to Styles & Templates -> Style Manager. Click on the «» button on the far right to expand the template list. Next double click on CSS Templates to open that group. Now double-click on css_additional.css to edit it. Place your Google Web Font code as the first line in this template. Save this template.
Go into the Style Variable Editor for your style and find the stylevar body_font. At the beginning of the font family line add:
Code:
"Open Sans",
Creating Styles with Fonts.
If you're a style designer you can also use these methods to include your own fonts with the style. Make sure to include the distributable font files in your style package and use the appropriate CSS to include your fonts in either the css_fonts.css (preferred method) or css_additional.css templates. You can find out more about embedding fonts here: http://www.w3schools.com/css/css3_fonts.asp
I suggest experimenting and playing with different classes until you get the results you're looking for.
Comment