Log in

View Full Version : A PHP font question


exdiogene
10-11-2009, 09:51 AM
One quick Question about PHP:

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

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

then:

ImageString ($img_create, $font, 5, 2, ($text), $color);

How would i change the font size? :D

BMR777
10-11-2009, 12:14 PM
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
the 5 is the Y position and the 2 is the X position :) already tried that.

aroymart
10-11-2009, 04:47 PM
have you tried looking at the actual file? maybe the size is pre-decided

exdiogene
10-12-2009, 10:29 AM
no the .ttf can be in lots of different sizes. :)

aroymart
10-17-2009, 08:08 PM
oh ok, i've never had any experiance with fonts