imagefontwidth(3) php man page | unix.com

Man Page: imagefontwidth

Operating Environment: php

Section: 3

IMAGEFONTWIDTH(3)							 1							 IMAGEFONTWIDTH(3)

imagefontwidth - Get font width

SYNOPSIS
int imagefontwidth (int $font)
DESCRIPTION
Returns the pixel width of a character in font.
PARAMETERS
o $ font -Can be 1, 2, 3, 4, 5 for built-in fonts in latin2 encoding (where higher numbers corresponding to larger fonts) or any of your own font identifiers registered with imageloadfont(3).
RETURN VALUES
Returns the pixel width of the font.
EXAMPLES
Example #1 Using imagefontwidth(3) on built-in fonts <?php echo 'Font width: ' . imagefontwidth(4); ?> The above example will output something similar to: Font width: 8 Example #2 Using imagefontwidth(3) together with imageloadfont(3) <?php // Load a .gdf font $font = imageloadfont('anonymous.gdf'); echo 'Font width: ' . imagefontwidth($font); ?> The above example will output something similar to: Font width: 23
SEE ALSO
imagefontheight(3), imageloadfont(3). PHP Documentation Group IMAGEFONTWIDTH(3)
Related Man Pages
imagepsslantfont(3) - php
imageloadfont(3) - php
pdf::api2::resource::basefont(3pm) - debian
imagechar(3) - php
imagefontheight(3) - php
Similar Topics in the Unix Linux Community
Modify Print Orientation, Font and Pitch
Font Size when printing too big....
how to make a line BLINKING in output and also how to increase font size in output
Solaris Default Font
New Mobile Navbar Icons from Font Awesome