Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Dec 2005
    Posts
    6,228
    Tokens
    1,145

    Latest Awards:

    Default Custom fonts on site? [+REP!]

    Yeah, I have a font on my computer that no one else will probaly have, so obviously, on my site, it only shows up as that font on my computer, no one elses.

    How do I make it so it works for everyone, without getting to complicated and without using flash etc.

    +Rep to all help. Thanks!
    i'm out of touch, i'm out of love
    i'll pick you up when you're getting down
    and out of all these things i've done
    i think i love you better now

  2. #2
    Join Date
    Nov 2007
    Location
    London
    Posts
    1,577
    Tokens
    36

    Latest Awards:

    Default

    Something that might point you in the right direction... you can use GD in PHP to create an image in PHP using a custom/uploaded font. Not sure the exact way but I'm sure a little google will explain. You could turn image creating into a function where when you put eg fontcreate($Welcome); it creates an image with the text in the variable $Welcome using GD image... not sure if GD image already has a command to do this. Anyway, hope that helps.
    Kind Regards,

    Guy
    __________________

    Since 2007. Unbelievable Uptime. Web hosting, resellers, master resellers, linux VPS, windows VPS, shoutcasts, at the lowest prices on the net.
    Tech-Hosts.co.uk.


  3. #3
    Join Date
    Dec 2005
    Posts
    6,228
    Tokens
    1,145

    Latest Awards:

    Default

    Thanks. Yeah I know about that, but I need text not an image. Its also possible in flash, by generating an image from a header (h2), and h2 would be .js.

    Quote Originally Posted by iUnknown View Post
    Something that might point you in the right direction... you can use GD in PHP to create an image in PHP using a custom/uploaded font. Not sure the exact way but I'm sure a little google will explain. You could turn image creating into a function where when you put eg fontcreate($Welcome); it creates an image with the text in the variable $Welcome using GD image... not sure if GD image already has a command to do this. Anyway, hope that helps.
    i'm out of touch, i'm out of love
    i'll pick you up when you're getting down
    and out of all these things i've done
    i think i love you better now

  4. #4
    Join Date
    Feb 2006
    Location
    Scotland
    Posts
    2,087
    Tokens
    138

    Latest Awards:

    Default

    Hey,

    The only other way I can think of is sIFR: http://wiki.novemberborn.net/sifr/

    Which is practically what you described in the last post.

    Sorry I can't be of any more help!

  5. #5
    Join Date
    Jun 2008
    Location
    United Kingdom
    Posts
    2,015
    Tokens
    568

    Latest Awards:

    Default

    There's this: http://www.ssi-developer.net/design/embed-font.shtml
    But it only works in IE5 & IE6, can't find anything better yet.

  6. #6
    Join Date
    May 2008
    Posts
    1,160
    Tokens
    11

    Latest Awards:

    Default

    I'm not sure if you can. Sometimes I visit sites, and it asks me to download the font to view the site. Maybe you could figure out how to do that?
    Previously a Habbo fanatic, web designer/developer, fansite owner, & trusted member of the community.

  7. #7
    Join Date
    Nov 2007
    Location
    London
    Posts
    1,577
    Tokens
    36

    Latest Awards:

    Default

    Quote Originally Posted by Johno! View Post
    Hey,

    The only other way I can think of is sIFR: http://wiki.novemberborn.net/sifr/

    Which is practically what you described in the last post.

    Sorry I can't be of any more help!
    That's a method I've seen before... possibly the best method really.

    Quote Originally Posted by Cushioned View Post
    I'm not sure if you can. Sometimes I visit sites, and it asks me to download the font to view the site. Maybe you could figure out how to do that?
    Some users will think it's a virus and not download it so not a good idea really.
    Kind Regards,

    Guy
    __________________

    Since 2007. Unbelievable Uptime. Web hosting, resellers, master resellers, linux VPS, windows VPS, shoutcasts, at the lowest prices on the net.
    Tech-Hosts.co.uk.


  8. #8
    Join Date
    Dec 2005
    Posts
    6,228
    Tokens
    1,145

    Latest Awards:

    Default

    Thanks all.

    Yeah i've found out there isn't exactly a reliable way for all browsers to view it. So I will probaly just use sIRF.
    i'm out of touch, i'm out of love
    i'll pick you up when you're getting down
    and out of all these things i've done
    i think i love you better now

  9. #9
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    Either;;

    Put the font in the stylesheet, then something else for it to fall back onto if the user doesnt have that font, and then tell them "this site is best viewed with the whatever font, download it here"

    OR

    Wait for CSS3 to be in all the browsers (never going to be in IE so your buggered) and use the feature that lets you have custom fonts.

  10. #10
    Join Date
    Mar 2007
    Location
    Kent
    Posts
    11,415
    Tokens
    787

    Latest Awards:

    Default

    im confused.

    left.
    not coming back.
    goodbye to all the cool people.

Page 1 of 2 12 LastLast

Posting Permissions

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