Mysidia Adoptables Support Forum  

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

Notices

Reply
 
Thread Tools Display Modes
  #11  
Old 08-23-2010, 01:39 AM
bruce678 bruce678 is offline
Member
 
Join Date: Aug 2010
Posts: 1
Credits: 125
bruce678
Default RE: How to change the font of siggy.php ?

Quote:
Originally Posted by fadillzzz
No, you don't need the imageloadfont to use imagettftext
read this
http://php.net/manual/en/function.imagettftext.php
and compare it to
http://php.net/manual/en/function.imagestring.php

imageloadfont is needed only if you want to use imagestring with custom font

take a look at my code
PHP Code:
    $str1 "".$name;
    
$str2 "Level:".$level;
    
$str3 "".$domain;
        
$font 'path/to/your/font.ttf';
        
$black imagecolorallocate($image202020); 

    
imagettftext ($image1600$textheight 18$black$font$str1);
    
imagettftext ($image1600$textheight 34$black$font$str2);
    
imagettftext ($image1600$textheight 50$black$font$str3); 
you can leave the '$image' untouch, and the number '16' is the font size, the first '0' is the angle, the second '0' is the x coordinates, the '$textheight ...' is the y coordinate, '$black' represent the font color, and '$font' is the font itself and last but not least '$str*' is the text to be loaded

Don't forget to define the variable like '$black' and '$font' before the imagettftext

Also, if you are still wondering how to center the text (using imagestring), read this
http://www.php.net/manual/en/function.imagestring.php#94306
Reply With Quote
  #12  
Old 09-02-2010, 01:13 AM
doaine2 doaine2 is offline
Member
 
Join Date: Aug 2010
Posts: 1
Credits: 125
doaine2
Default RE: How to change the font of siggy.php ?

Alls well ?
Reply With Quote
  #13  
Old 09-22-2010, 02:34 AM
jillyronald jillyronald is offline
Banned
 
Join Date: Sep 2010
Posts: 3
Credits: 150
jillyronald
Default RE: How to change the font of siggy.php ?

Settings > user control panel > font style > change font > select the font which style you want. Then select ok from this way you can change the font of siggy.php. You also change font colour, size, style, and also you can add any extra fonts.
Reply With Quote
Reply

Thread Tools
Display Modes

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 02:44 AM.

Currently Active Users: 723 (0 members and 723 guests)
Threads: 4,080, Posts: 32,024, 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 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636