SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    masquerading Nick's Avatar
    Join Date
    Jun 2003
    Location
    East Coast
    Posts
    2,215
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Newb font question

    Well I know this is going to sound pretty elementary, but I had never really considered it. I just switched to Linux, and doing my web development, most of my fonts are different - for example, verdana doesn't show, it defaults to some other font. The only one that I can tell looks the same is arial. Is there anyway around this?
    Nick . all that we see or seem, is but a dream within a dream
    Show someone you care, send them a virtual flower.
    Good deals on men's watches

  2. #2
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The set of available fonts is very different between operating systems. What looks like Arial on your Linux system is most likely Helvetica (of which Arial is a cheap knock-off).

    You can download the common Microsoft fonts (Verdana, Georgia, etc.) and it's supposed to be possible to install them on Linux. I tried with my old RH9 system but couldn't get it to work; haven't bothered on my Fedora 8 system. I'm not sure about the licensing conditions, though.
    Birnam wood is come to Dunsinane

  3. #3
    masquerading Nick's Avatar
    Join Date
    Jun 2003
    Location
    East Coast
    Posts
    2,215
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So how do you go about maintaining font consistency on your websites when viewers may be using Linux, Windows, or Mac?
    Nick . all that we see or seem, is but a dream within a dream
    Show someone you care, send them a virtual flower.
    Good deals on men's watches

  4. #4
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,875
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    By selecting a family of similar fonts and specifying them as a comma separated list in the CSS so that each visitor will see the page in the first front from your list that they actually have.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  5. #5
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Nick View Post
    So how do you go about maintaining font consistency on your websites when viewers may be using Linux, Windows, or Mac?
    You can't (unless you make the whole page as an image). As Stephen said, you can specify fallback alternatives to retain some degree of control, but you can never know which fonts a visitor has installed (or uninstalled).

    Web design doesn't give the designer full control; far from it. On the web, the user is in control. All we designers/developers can do is provide hints about how we'd like our documents to render.
    Birnam wood is come to Dunsinane


Bookmarks

Posting Permissions

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