Haris
01-09-2003, 07:30 AM
Hi,
I have seen most of the websites using Arial or Verdana in them. Is it possible for me to use Arial Black inside my pages. I mean, whtether it will be supported everywhere like Arial and Verdana.....? Please help....
Thank you,
Haris.
Your best bet with fonts that may not be present on all surfers computers is to use css font-family lists.
<style>
.weird {
font-family: Arial Black, Arial, Helvetica;
font-weight: 500;
}
</style>
<span class="weird">some text</span>
If a PC has Arial Black, that font will be used.
If a PC only has Arial and Helvetica, then Arial would be used.
The first font that is read from left to right and is present on the PC will be used.
Subnote: I don't know if this is still pertinent - ages ago someone mentioned that fonts with spaces should be enclosed in "s ie "Arial Black" - I think css moved on since then tho.
MCookie
01-09-2003, 10:59 AM
Just found this page (which fonts come with Windows):
http://pagemakersupport.adobe.com/adobeknowbase/root/public/pm1010.htm?DREID=7089
...so I think it's safe to use Arial Black in this way:
font-family: {
"arial black",verdana,arial,sans-serif;
}
Always specify more fonts in case users don't have your preferred one.
MCookie
01-09-2003, 11:01 AM
Originally posted by Ökii
Subnote: I don't know if this is still pertinent - ages ago someone mentioned that fonts with spaces should be enclosed in "s ie "Arial Black" - I think css moved on since then tho.
No. CSS did not move on... you still need the " " for fonts with spaces.