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 5 of 5
  1. #1
    Regular Coder
    Join Date
    Mar 2007
    Location
    Quebec
    Posts
    261
    Thanks
    6
    Thanked 7 Times in 7 Posts

    Embedding a font

    Hi,

    Is it possible to embed a non-standard font into a webpage? If so, how? I've tried it before and learned somewhere that the font must be a truetype font, but I had no success whatsoever with that method and I have been unable to dig up any other ways.

    Can anyone help?

    Thanks

  • #2
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.

  • #3
    Regular Coder
    Join Date
    Mar 2007
    Location
    Quebec
    Posts
    261
    Thanks
    6
    Thanked 7 Times in 7 Posts
    That method doesn't work. I've tried it like 10 times now and yet it still won't show up. Guess I have to use a default font

  • #4
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    Well its a very tricky process, and honestly unreliable. I haven't done it in a long time because of that reason. However pick a default font, and use some graphics with your font in key places to add some spice.
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.

  • #5
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,538
    Thanks
    8
    Thanked 1,093 Times in 1,084 Posts
    For buttons, banners, and things that are dynamic, meaning the text
    changes on them, you can use PHP and GD to create a .gif or .png image
    with your "non-standard" font. It is actually an image, but the text can
    be placed in it using PHP (so it can be any text).

    Example, pictures of houses with the prices shown directly on the photos
    themselves, the graphic image, not HTML.

    If you have a lot of text, use something standard like "arial".


  •  

    Posting Permissions

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