2 replies [Last post]
MnInShdw
MnInShdw's picture
User offline. Last seen 7 years 48 weeks ago. Offline
newbie
Timezone: GMT+9
Joined: 2004-06-17
Posts: 2
Points: 0

New to this forum. Hope somebody can help me out of this problem.

I have created some eot files out of several truetype fonts (by Weft3) and have used them in several pages. At present I'm showing these fonts by using a <style>..</style> block in the head of each HTML document and every thing works just fine.
this is what I have used:

Quote:

<style>
@font-face{
font-family: MyFont;
font-style: normal;
font-weight: normal;
src: url(eot/EXCELSI0.eot);
}
</style>

I tried to move this style block to a linked style sheet, but the fonts don't show when I move this block to the css linked file. Is there any way to use eot (embedded fonts) files through linked style sheets and not in the head part of each document? :?:

Any kind of help is much appreciated.

co2
co2's picture
User offline. Last seen 4 years 5 weeks ago. Offline
rank Leader
Leader
Joined: 2003-09-17
Posts: 721
Points: 0

Help with using eof in linked style sheets Please

Does the source track-back to the correct location of the font if the code is inserted into the separate stylesheet?

For example, if your stylesheet is in a styles folder, then the link would change to something like:

src: url(../eot/EXCELSI0.eot);

The next sentence is true. The previous sentence is false. Discuss...

MnInShdw
MnInShdw's picture
User offline. Last seen 7 years 48 weeks ago. Offline
newbie
Timezone: GMT+9
Joined: 2004-06-17
Posts: 2
Points: 0

Help with using eof in linked style sheets Please

co2 wrote:

For example, if your stylesheet is in a styles folder, then the link would change to something like:

src: url(../eot/EXCELSI0.eot);

Thanks for taking your time and replying.

Yes, the path to the eot file is OK. I believe the problem is something about @font-face or font-family:.

any further advice would be much appreciated.