Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Font src

Status
Not open for further replies.

Sarky78

Programmer
Oct 19, 2000
878
GB
I have two fonts that are currently in ttf format, i want to be able to use these of a website, I have seen some sites that have stated a source for the font, that the browser then downloads (I guess!). this font is in a .eot format, how do i go about getting th ttf font into a eot format?

and would i be right to say that the code for using this font would then be:

.normalText {
font-size:12px;
src: url(/INFAH.eot);
}

.boldText {
font-size:12px;
src: url(/INFAHB.eot);
}

I have got two fonts you see one bold and the other normal.

thanks in advance !
 
Point your browser to microsoft.com and search for 'WEFT'...
 
thanks for the help with pointing me at weft however i am having problems with it, it might just be the after effects of new year i don't know !

what i ahve done is to follow the instructions from the website, so running it all from my hard drive and then saying allow access to this website and this website etc.

the page works fine when i view it from the local drive, the font is embedded fine, when i try and view it from our webserver (which is one of the sites added using the mirror site section) i get a standard font, it doesn't seem to be able to pick up the font from the server. I have copied the .eot file to the server and am using the same code.

this is the code that i am using :

@font-face {
font-family: Infant Hum 521;
font-style: normal;
font-weight: normal;
src: url(INFANTH1.eot);
}

.normFont {
font-family: Infant Hum 521;
font-style: normal;
font-weight: normal;
font-size: 26px;
src: url(INFANTH0.eot);
}

then:

<span class=&quot;normFont&quot;> a b c d e f g </span><BR></p>

to display out


any ideas ?

cheers !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top