Loading a font

Discussion in 'Programming' started by chewie49, Nov 1, 2007.

  1. #1
    Hello again!

    I have a very cool font i would like to use in my website, but I don't know how to load it in order to visitors can see the text with that original font.

    Is there any way to do this?

    Cheers!

    Chewie.
     
    chewie49, Nov 1, 2007 IP
  2. jmhyer123

    jmhyer123 Peon

    Messages:
    542
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Not that I know of, you can load it into a php GD generated image, but that's about the only way I can think of doing it...

    The problem is that each user has to have the font on their computer...
     
    jmhyer123, Nov 1, 2007 IP
  3. dEmOn1337

    dEmOn1337 Guest

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Agree, People has to have your font...

    But, what you can do is, Do it in Photoshop, You can use the font and save it as an image...

    Hard work though, it will do :)
     
    dEmOn1337, Nov 2, 2007 IP
  4. Oli3L

    Oli3L Active Member

    Messages:
    207
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    70
    #4
    Someone once told to do it like that:
    
    @font-family
    {
    	font-family:BN Barak Bold; 
    	src: url('BNBAB___.TTF'); 
    }
    
    Code (markup):
    But I don't real know how to use it much, you can try things with this code and maybe you'll do it right.
     
    Oli3L, Nov 2, 2007 IP
  5. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #5
    There are two ways of doing

    1) Convert all text to images which will make it a slow site that doesnt get indexed by search engines (well)

    2) Add the font for users to download and install - many people wont trust you to do this though for one and for two you would have to own the distribution license for the font.

    Basically, dont do it
     
    AstarothSolutions, Nov 2, 2007 IP