The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
embed font
Hi!
I wanted to put in my forum external font "Myriad Pro". I have the code: Code:
@font-face ( Font-family: "Myriad Pro"; Src: url (path/ fonts/MyriadPro-Regular.otf); Font-style: normal; Font-weight: normal; ) |
#2
|
||||
|
||||
You can't do it that way. You have to use either a .pfr font or a .eot font. If you use the .eot font, then it only works with internet explorer, so you should find/use a .pfr instead.
You can use a program like this one to convert the font: http://www.fontlab.com/font-converter/transtype/ After you have the correct font type... Use this code (for the PFR fonts) in the headinclude template: Code:
<LINK rel = "fontdef" src="url/YourFontName.pfr"> Use this code (for the EOT fonts) anywhere on the page (headinclude template is best): Code:
<STYLE TYPE="text/css"> <--! @font-face { font-family: Arial; font-style: normal; font-weight: normal; src:url(url/EOTfileName.eot); } --> </STYLE> You should consider that people will have longer download times when viewing your pages, so watch out for large font files. Also, some browsers will complain about security concerns. Embeddable fonts on websites have been a method of attack on a user's computer for years and some browsers will prompt security dialogues about it. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|