Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Jun 2002
    Location
    God's own country
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Font Reliability....

    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.
    The best way to make your dreams come true is to WAKE UP . . . !!!

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    UK
    Posts
    577
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    Ökii - formerly pootergeist
    teckis - take your time and it'll save you time.

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    NL
    Posts
    421
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Just found this page (which fonts come with Windows):
    http://pagemakersupport.adobe.com/ad...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.

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    NL
    Posts
    421
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •