Graphics function Library: Imageloadfont

Source: Internet
Author: User
Keywords imageloadfont php Chinese function manual graphics function library
Tags aliyun file function function library graphics graphics function library html http

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 ()

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.