3 replies [Last post]
Anonymous
Anonymous's picture
Guru
calgary,alberta
calgary,alberta

I have a CSS with "Trebuchet MS" chosen as the font, displaying some cyrillic (windows-1251) text. It works just fine on my machine, however, for some other computers, like the computer at my school, Times New Roman shows up, instead of Trebuchet MS. What's wrong here?

Daniel
Daniel's picture
Offline
Enthusiast
Last seen: 21 weeks 4 days ago
Timezone: GMT+10
Joined: 2003-03-12
Posts: 76
Points: 0

Re: Cyrillic font problems...

Achka wrote:
I have a CSS with "Trebuchet MS" chosen as the font, displaying some cyrillic (windows-1251) text. It works just fine on my machine, however, for some other computers, like the computer at my school, Times New Roman shows up, instead of Trebuchet MS. What's wrong here?

It looks like the probolem here is that Trebuchet MS is probably not installed on the other computers. It's always best wherever possible to try and stick with more standard fonts (e.g. verdana, arial, times etc).

Alternatively, I think it's possible to include non-standard fonts with your CSS - I think this is the CSS for it:

Quote:
From [url=http://www.csscreator.com/css-node/46 thread:
<style type="text/css"> 
@import { 
font-family: Font Name; 
src: url("Font File.ttf"); 
} 
.classname { 
font-family: "Font Name"; 
} 
</style> 

Hope this helps!

Daniel

dJomp
dJomp's picture
Offline
Enthusiast
York, England
Last seen: 11 years 30 weeks ago
York, England
Joined: 2003-03-23
Posts: 422
Points: 0

Cyrillic font problems...

From the W3 CSS spec:

@font-face {
font-family: Blah;
src: url("wherever");
}

Take a read of this too:

http://hotwired.lycos.com/webmonkey/design/fonts/tutorials/tutorial2.html?tw=hf199946

Am just working my way through it myself, seems to suggest that .ttf fonts can't be used straight away. Will let you know more findings in a short while...

You know you're a geek when you try to shoo a fly away from the monitor with your cursor.

dJomp
dJomp's picture
Offline
Enthusiast
York, England
Last seen: 11 years 30 weeks ago
York, England
Joined: 2003-03-23
Posts: 422
Points: 0

Cyrillic font problems...

Couple of notes on the above tutorial...

It leads you nicely through the WEFT [Web Embedding Fonts Tool] tutorial, making a file that can be used in websites and hey, look, it works! It leaves the nasty bit till the end, that these files only work under IE. Damn.

The other method (TrueDoc) involved tools that cost $150. So not really an option. Haven't looked at the demos.

The problem with including a font is browsers accepting them; the problem with specifying a font any other way is praying the user has it on their system.

Of course there's a HUGE percentage of people that use IE so the first method is probably worth considering, and having a backup (default) font for the other users.

You're never going to get every browser on every platform looking the same, be it fonts or other css things. But there you go, that's how to embed a font, good luck with deciding what to do!

You know you're a geek when you try to shoo a fly away from the monitor with your cursor.