chocopi Posted June 29, 2007 Share Posted June 29, 2007 How do you change the font size when using imagestring() ?? I know you can choose between 1 and 5 but since I added in a font, I do not know how to specify the font size Here is my code: imagestring($captcha, 5, 20, 10, $string, $colour); but as soon as i replace the 5 with my $font, it becomes tiny Thanks, ~ Chocopi Link to comment https://forums.phpfreaks.com/topic/57765-solved-font-size-in-imagestring/ Share on other sites More sharing options...
Lumio Posted June 29, 2007 Share Posted June 29, 2007 What does $font contain? Link to comment https://forums.phpfreaks.com/topic/57765-solved-font-size-in-imagestring/#findComment-286139 Share on other sites More sharing options...
marcus Posted June 29, 2007 Share Posted June 29, 2007 5 is the generic font size, which is leading to a default font. You can't change a font size within a GDF font unless it's recompiled with the size you wish. Link to comment https://forums.phpfreaks.com/topic/57765-solved-font-size-in-imagestring/#findComment-286194 Share on other sites More sharing options...
chocopi Posted June 30, 2007 Author Share Posted June 30, 2007 kool thanks, its not really a problem, so i will leave it Link to comment https://forums.phpfreaks.com/topic/57765-solved-font-size-in-imagestring/#findComment-286561 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.