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?
Re: Cyrillic font problems...
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:
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
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...
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!