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!


Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2008
    Posts
    179
    Tokens
    0

    Default 'gd' headers... help LOL

    Right I wanna make a 'gd' header so they're so called, but I've got a bit lost when it comes to adding the border around it.

    So far I've got this..

    http://fansitelibrary.net/content/co...php?text=Hello Habbox!

    & the php code I've used is..

    <?php
    /*
    Dynamic Heading Generator
    By Stewart Rosenberger
    http://www.stewartspeak.com/headings/

    This script generates PNG images of text, written in
    the font/size that you specify. These PNG images are passed
    back to the browser. Optionally, they can be cached for later use.
    If a cached image is found, a new image will not be generated,
    and the existing copy will be sent to the browser.

    Additional documentation on PHP's image handling capabilities can
    be found at http://www.php.net/image/
    */


    $font_file = 'volterb.ttf' ;
    $font_size = 7 ;
    $font_color = '#000000' ;
    $background_color = '#ffffff' ;
    $transparent_background = true ;
    $cache_images = true ;
    $cache_folder = 'cache' ;
    $border_width = 2 ;
    $border_color = '#00CCCC' ;








    Just wondering what the border tag is, if anyone could help me I would appreciate it very much. Also if its possible a shadow code, but I'm not sure if it is.

    I've only got a rep power of 2, but I'll still give you +rep any how.
    Last edited by UrbanRyan; 22-11-2009 at 04:26 PM.


  2. #2
    Join Date
    Oct 2006
    Location
    Peterborough, UK
    Posts
    3,855
    Tokens
    216

    Latest Awards:

    Default

    There is no code there to make a border. However to do so the method is this:

    Create the text in the colour of the border, make it bigger than you want the normal text to be (this will be the border).

    Sit the normal text smack bang in the middle of it (this will be the normal text that you read, not the border)

    Render it.


    visit my internet web site on the internet
    http://dong.engineer/
    it is just videos by bill wurtz videos you have been warned

Posting Permissions

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