Click to See Complete Forum and Search --> : loading fonts
habitualmurder
09-15-2003, 12:55 AM
I have this font on my windows 2000 system..
its the 'chiller' font.
but ive seen my site on other windows systems and they dont have the font on their system. so my site looks different.
can i load this font into their winXX/font directory?
or is there something else i can do
any advice would be appreciated.
The best option is to list optional fonts in the CSS, the last being the generic type.
<style type="text/css">
<!--
body {font-family:chiller, bart, "Rage Italic", fantasy;}
-->
</style>
Or you can have the user download your font:
<style type="text/css">
<!--
@font-face {
font-family: "MyFont";
src: url("http://www.mysite.com/MyFont");
}
body {font-family:"MyFont";}
-->
</style>
habitualmurder
09-15-2003, 08:52 PM
will this automatically load the font into the users proper directory?
Try it out! You may want to read font-face Rule MS (http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties/fontface.asp) and font-face Rule faq (http://members.tripod.com/~bhaavana/embedded/faq.html) before attempting this.
You can also find more infomation on WEFT at http://www.microsoft.com/typography/web/embedding/weft2/default.htm
Robert Wellock
09-16-2003, 11:18 AM
You might like to also study the CSS 2.1 WD http://www.w3.org/TR/CSS21 and remember that WEFT only covers M$ browsers.
True, but unless I missed something, CSS alone doesn't allow one to embed fonts. I see no real danger in using WEFT, as long as a default/secondary font is set for other, better browsers.
Robert Wellock
09-16-2003, 11:30 AM
Though within CSS 2.1 @font-face is likely to be removed in favour of an SVG solution, so yes use it with extreme caution but provide fallbacks.