more useful options | |
PerlMonks |
Re: Centering Text with GD::Imageby tangent (Parson) |
on Nov 03, 2021 at 19:40 UTC ( [id://11138403]=note: print w/replies, xml ) | Need Help?? |
You can get the bounds of the text box using the stringFT() method, but you will need to load up a truetype font first - see the "Character and String Drawing" section in the GD docs.
In Section
Seekers of Perl Wisdom
|
|