in reply to Centering Text with GD::Image
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Centering Text with GD::Image
by djlerman (Sexton) on Nov 03, 2021 at 21:37 UTC | |
by pryrt (Abbot) on Nov 03, 2021 at 21:43 UTC |
In Section
Seekers of Perl Wisdom