Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 08-19-2010, 09:10 AM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 41,487
fadillzzz is an unknown quantity at this point
Default RE: How to change the font of siggy.php ?

Quote:
Originally Posted by HIddenPanda
LOL I was actually messing around with that today, It's actually very easy to do (even if you want to use your own font)

If you look at mine, (from pixelpets.co.cc :D) I set mine to use a font i downloaded for my recent obsession (Simlish from The Sims game series)

1. Find a font (I've had luck with Google and dafont.com)

2. You will most likely have to convert the font to a .gdf file so I reccomend http://www.wedwick.com/wftopf.exe if its a TrueType font.

3. Upload the font to the fonts folder on your server.

4. Open up siggy.php and look for the following lines (around Line 170)

PHP Code:
    $str1 "Name: ".$name;
    
$str2 "Owner: ".$owner;
    
$str3 "Train Me!";
    
$str4 "More Adopts at:";
    
$str5 $domain;

    
imagestring ($image120$textheight,  $str1$color);
    
imagestring ($image120$textheight 13,  $str2$color);
    
imagestring ($image120$textheight 26,  $str3$color); 
Yours is probably different because I have edited mine a bit

5. Insert the following code (with obvious modifications BEFORE the imagestring() lines
PHP Code:
$font imageloadfont('fonts/GDF FILE NAME HERE!!!!!.gdf'); 
That tells the page to load the font for usage

6. Change the 2nd variable in the imagestring lines you want this font to be used (in this case replace the 12s)

In the end it should look somewhat similar to this

PHP Code:
    $str1 "Name: ".$name;
    
$str2 "Owner: ".$owner;
    
$str3 "Train Me!";
    
$str4 "More Adopts at:";
    
$str5 $domain;
    
$str6 "LOL Simlish";

    
$font imageloadfont('fonts/sims.gdf');
    
imagestring ($image$font0$textheight,  $str1$color);
    
imagestring ($image$font0$textheight 13,  $str2$color);
    
imagestring ($image$font0$textheight 26,  $str3$color);
    
imagestring ($image120$textheight 43$str6$color); 
Sorry that this tutorial is kinda crappy im a bit tired at the moment
You can also use imagettftext instead so that you can use .ttf and get better looking text since .gdf doesn't have anti aliasing

Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS: Using a Non-Standard Font Kaeliah Tutorials and Tips 0 01-31-2011 08:50 PM
Font Question. shadowclash1 Other Chat 0 10-30-2010 04:26 AM
how to change background of siggy? vexel Questions and Supports 7 09-29-2010 10:54 AM
I want change font jcga Questions and Supports 4 02-14-2010 08:47 AM
A PHP font question exdiogene Webmasters Area 5 10-17-2009 08:08 PM


All times are GMT -5. The time now is 01:59 PM.

Currently Active Users: 1052 (0 members and 1052 guests)
Threads: 4,081, Posts: 32,032, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636