User / Developer Forum
How do i know what the font name is?
Seb
|
10 Feb 2010 22:47
So ive used the font converter and used a font from my PC, and it made the .js file... but how do i know what to put in the style="font-family:xxxx" ? At least with Cufon there is a spot to put it in when you create your cufon font...
Seb
|
10 Feb 2010 22:52
I think i may have worked it out...
But im using a library that has Bold and Light... and the JSON Family Name in the .js is the same on both??? how do i use Light and Bold??
this script seems very unfinished.
But im using a library that has Bold and Light... and the JSON Family Name in the .js is the same on both??? how do i use Light and Bold??
this script seems very unfinished.
Mick Byrne
|
29 Mar 2010 18:42
The name of the font to use is right at the end of the long JSON string that is the .js file for the font you've converted. I've noticed that some fonts tend to use different property names for the fonts, but you should be able to work it out.
Note also that a font family with spaces in it needs to be wrapped in "quotes" in your stylesheet, e.g.
h1
{
font-family: "Helvetica CE 55 Roman";
}
I've had one instance where I seemed to solve a problem by changing the case of the font name in the stylesheet.
In regards to using 'bold', you just apply the bold style as you normally would, (e.g. h1 { font-weight: bold; }) and make sure you have the bold version of the font converted into an included .js file.
Note also that a font family with spaces in it needs to be wrapped in "quotes" in your stylesheet, e.g.
h1
{
font-family: "Helvetica CE 55 Roman";
}
I've had one instance where I seemed to solve a problem by changing the case of the font name in the stylesheet.
In regards to using 'bold', you just apply the bold style as you normally would, (e.g. h1 { font-weight: bold; }) and make sure you have the bold version of the font converted into an included .js file.
Post a Reply