Adding a font to a web page

Discussion in 'Water Cooler' started by The Cadet, Jun 8, 2009.

  1. The Cadet

    The Cadet Adept

    Joined:
    Jun 2, 2009
    Messages:
    135
    Likes Received:
    4
    First Name:
    Jonah
    I need to add a certain font (papyrus) to a web page and I have no idea how. I googled, but I couldn't find two pieces of advice that worked together, or how to do it on IE without needing windows software. >.<
     
  2. Dan Hutter

    Dan Hutter aka Big Dan

    Joined:
    Jul 20, 2006
    Messages:
    1,412
    Likes Received:
    515
    Location:
    New York
    If I recall correctly, and it's been a while since I've made static pages but..

    There is no way to 'put' a font on a webpage. You can define the font via HTML or CSS but unless the user has that font installed on their computer it won't display. If the user doesn't have the font installed the text will still display but the font will fall back to the system default. I believe that's Arial on Windows systems.

    The only sure fire way to get a font to display on page without worrying whether or not the user has the font installed is to put it in an image.

    Also, you could do a flash object which I believe has the capability to embed a font into the swf however then you run into problems with search engines being able to crawl the content.

    You may want to take a read over this: [ame]http://en.wikipedia.org/wiki/Web_safe_fonts[/ame]
     
  3. The Cadet

    The Cadet Adept

    Joined:
    Jun 2, 2009
    Messages:
    135
    Likes Received:
    4
    First Name:
    Jonah
    What about

    @font-face {
    font-family: "My Custom Font";
    src: url("http://brendanjerwin.github.com/VeraMono.ttf");
    }
     
  4. Dan Hutter

    Dan Hutter aka Big Dan

    Joined:
    Jul 20, 2006
    Messages:
    1,412
    Likes Received:
    515
    Location:
    New York
    Don't the that's gonna work, security wise it doesn't make since it would allow you to download a file on to the users computer which could contain anything without their consent.
     
  5. The Cadet

    The Cadet Adept

    Joined:
    Jun 2, 2009
    Messages:
    135
    Likes Received:
    4
    First Name:
    Jonah
    :(

    Damn. This is bad...
     

Share This Page