Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   How to change the font of siggy.php ? (http://www.mysidiaadoptables.com/forum/showthread.php?t=1533)

bruce678 08-23-2010 01:39 AM

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


doaine2 09-02-2010 01:13 AM

RE: How to change the font of siggy.php ?
 
Alls well ?

jillyronald 09-22-2010 02:34 AM

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.


All times are GMT -5. The time now is 06:57 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.