★ wanayoo — archive 1999 http://www.php.net/manual/function.imageloadfont.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to Graphics
Quick Reference
German version of this pageJapanese version of this pageItalian version of this pageFrench version of this pageHungarian version of this page
Graphics
* GetImageSize
* ImageArc
* ImageChar
* ImageCharUp
* ImageColorAllocate
* ImageColorDeAllocate
* ImageColorAt
* ImageColorClosest
* ImageColorExact
* ImageColorResolve
* ImageGammaCorrect
* ImageColorSet
* ImageColorsForIndex
* ImageColorsTotal
* ImageColorTransparent
* ImageCopy
* ImageCopyResized
* ImageCreate
* ImageCreateFromGIF
* ImageCreateFromJPEG
* ImageCreateFromPNG
* ImageDashedLine
* ImageDestroy
* ImageFill
* ImageFilledPolygon
* ImageFilledRectangle
* ImageFillToBorder
* ImageFontHeight
* ImageFontWidth
* ImageGIF
* ImagePNG
* ImageJPEG
* ImageInterlace
* ImageLine
* ImageLoadFont
* ImagePolygon
* ImagePSBBox
* ImagePSEncodeFont
* ImagePSFreeFont
* ImagePSLoadFont
* ImagePsExtendFont
* ImagePsSlantFont
* ImagePSText
* ImageRectangle
* ImageSetPixel
* ImageString
* ImageStringUp
* ImageSX
* ImageSY
* ImageTTFBBox
* ImageTTFText
* ImageTypes
* read_exif_data
Manual: ImageLoadFont
View the source code for this pageSearch the site



Previous page
 ImageLine
 Updated
Sat, 12 Aug 2000
ImagePolygon 
Next page


ImageLoadFont

(unknown)

ImageLoadFont -- Load a new font

Description

int imageloadfont (string file)

ImageLoadFont() loads a user-defined bitmap font and returns an identifier for the font (that is always greater than 5, so it will not conflict with the built-in fonts).

The font file format is currently binary and architecture dependent. This means you should generate the font files on the same type of CPU as the machine you are running PHP on.

Table 1. Font file format

byte positionC data typedescription
byte 0-3intnumber of characters in the font
byte 4-7int value of first character in the font (often 32 for space)
byte 8-11intpixel width of each character
byte 12-15intpixel height of each character
byte 16-char array with character data, one byte per pixel in each character, for a total of (nchars*width*height) bytes.

See also ImageFontWidth() and ImageFontHeight().


User Contributed Notes: ImageLoadFont


php@inetconsult.ch
03-Nov-1999 08:20
Where can I get additional fonts?


cpegandy@ust.hk
30-Dec-1999 04:06
I have the same problem. I wanna to change the fonts. where can I get one instead of using the default ?


raab@home.se
23-Apr-2000 05:09
I'm looking for binary fonts as well.. If anybody has any, pretty please with suggar on top, notice me!

I'm particulary looking for Verdana now, to be able to keep the whole site in just one face..



zgshao99@sina.com
03-May-2000 10:01
Where can I get additional fonts?????



matt@dboard.com
03-Jul-2000 12:56
Anyone have a tool to convert existing window type FON and TTF to PHP3 format font files? Anything that will help create or locate some additional fonts?


 About Notes


Previous page
 ImageLine
 Updated
Sat, 12 Aug 2000
ImagePolygon 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.