Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Webmasters Area (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=14)
-   -   A PHP font question (http://www.mysidiaadoptables.com/forum/showthread.php?t=1134)

exdiogene 10-11-2009 09:51 AM

A PHP font question
 
One quick Question about PHP:

I have a .ttf in my script. It looks like this:

PHP Code:

$font imageloadfont("./fonts/visitor1.ttf"); 

then:

PHP Code:

ImageString ($img_create$font52, ($text), $color); 

How would i change the font size? :D

BMR777 10-11-2009 12:14 PM

RE: A PHP font question
 
I think either the 5 or the 2 changes it. I know one alters the font size and one alters the line position, so play around with both. :)

exdiogene 10-11-2009 03:20 PM

RE: A PHP font question
 
the 5 is the Y position and the 2 is the X position :) already tried that.

aroymart 10-11-2009 04:47 PM

RE: A PHP font question
 
have you tried looking at the actual file? maybe the size is pre-decided

exdiogene 10-12-2009 10:29 AM

RE: A PHP font question
 
no the .ttf can be in lots of different sizes. :)

aroymart 10-17-2009 08:08 PM

RE: A PHP font question
 
oh ok, i've never had any experiance with fonts


All times are GMT -5. The time now is 12:57 AM.

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