![]() |
|
#1
|
||||
|
||||
|
Thanks from wayne at vbulletin.com for the info
“ Originally Posted by Wayne Luke;n4412971 ”First you have to load the font on the user's device since there is no guarantee that is is available. How are you doing this?
Google Fonts? The best method for Google Fonts is to add the <link> code they provide to your header_include template. Once that is done, then edit your Style Variables and add the font family name to the beginning of the list for the global_header_font and global_text_font style variables. If it is not available on Google Fonts then you need to make the WOFF file available to vBulletin. Following these steps; 1. These should be uploaded to their own subdirectory in /fonts/ on your server. 2. Once this is done, then you need to go into your AdminCP then Styles -> Style Manager. Select "Add New Template" from the dropdown. Give this template a name like "css_font_droidarabickufi.css" and add this code: Code<vb:if condition="!empty($use_regular) OR !empty($use_all)">
@font-face {
font-family: 'droidarabickufi';
src: url('fonts/droidarabickufi/droid-arabic-kufi.woff') format('woff');
font-weight: normal;
font-style: normal;
}
</vb:if>
4. Then in css_fonts.css add this code: Code{vb:template css_font_droidarabickufi.css,
use_all=1,
}
|
![]() ![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [INFO] Tutorial how to change font colour on TF3D | D/\SH | Tutorial Forum | 0 | 10-16-2008 01:45 PM |
| Font Change? | poleman25 | HTC Touch Questions | 3 | 01-12-2008 09:38 PM |
| Change Font Style For Menus And System For Moto Q | D/\SH | Tutorial Forum | 0 | 04-03-2007 11:32 PM |