How to use various fonts on a website
I want to use trainway font on my websit开发者_运维技巧e. But i am pretty sure that the user wont be having it installed in his machine.
So is there a way to display the text of a particular font without prompting the user to install that font.
Thanks in Advance
What you're looking for is the Mo' Bulletproofer Method by Paul Irish et co.
Also, try FontSquirrels' @font-face generator to see what the generated syntax is for a font and convert some freely available fonts for use on the web.
There isn't (afaik) a Javascript solution to your problem, but you can use the CSS command @font-face
IF you have a the proper license for the typeface you can embed it with @font-face
which can work cross browser provided you have the rights to take the font an convert it.
There are also tools like Cufon and sIFR that use flash or JS to emebed and use fonts. CUFON i think you still need a license to convert to its format for embedding... sIFR really gets around the licensing since it being embedded in a flash movie.
You can use other online services like google font API or cufon that only request you add some extra code. Although am not sure if you will find that specific font.
精彩评论