Imageloadfont
(PHP3, PHP4)
Imageloadfont---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; load new font
Syntax: int imageloadfont (string file)
Description:
Imageloadfont () Loads a user-defined bitmap (bitmap) font and returns the identifier of the font (it is always greater than 5, so it does not conflict with the embedded font).
The font file format is now binary and depends on the internal structure of the computer, which means that you have to produce a font file on the machine where you run PHP.
Font file format:
BYTE group position c data type description byte 0-3 int font number of characters in byte 4-7 int font The value of the first character (usually 32 or blank) byte 8-11 int pixel width byte 12-15 int. pixel height of individual characters Byte 16-char array and Word metadata, one pixel in each character is one byte, total number of bytes (nchars*width*height)
Reference: Imagefontwidth () imagefontheight ()