Query: imagefontwidth
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
IMAGEFONTWIDTH(3) 1 IMAGEFONTWIDTH(3) imagefontwidth - Get font widthSYNOPSISint imagefontwidth (int $font)DESCRIPTIONReturns the pixel width of a character in font.PARAMETERSo $ 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 VALUESReturns the pixel width of the font.EXAMPLESExample #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: 23SEE ALSOimagefontheight(3), imageloadfont(3). PHP Documentation Group IMAGEFONTWIDTH(3)
Related Man Pages |
---|
imagepsslantfont(3) - php |
imagestring(3) - php |
imagefontwidth(3) - php |
imagepsencodefont(3) - php |
imagepsextendfont(3) - php |
Similar Topics in the Unix Linux Community |
---|
Solaris 8 Font Path ... |
Font Size |
Font Size in shell! |
New Icons Coming from Font Awesome |
Quick Update on UNIX.COM Site Renovation: Bootstrap, Font Awesome and jQuery |