Name
width( ), height( ) — get the width and height in pixels
Synopsis
GD::Font::width, GD::Font::height
These methods return the width and height of the font, in pixels. For example, the following will return 5 and 8:
($width, $height) = (gdTinyFont->width, gdTinyFont->height);
Get Programming Web Graphics with Perl and GNU Softwar now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.