Common API functions (5): Text and font Functions

Source: Internet
Author: User
Addfontresource Add a Font Resource in Windows
Createfont Creates a logical font with the specified property.
Createfontindirect Creates a logical font with the specified property.
Createscalablefontresource Creates a resource file for a turetype font so that you can use the API function addfontresource to add it to Windows.
Drawtext Depicts text in a specified rectangle.
Drawtextex Similar to drawtext, but more functions are added.
Enumfontfamilies Lists available fonts of a specified device.
Enumfontfamiliesex Lists available fonts of a specified device.
Enumfonts Lists available fonts of a specified device.
Exttextout Extended text descriptors. For more information, see settextalign.
Getaspectratiofilterex When you use setmapperflags to require windows to select only the grating font that matches the current aspect ratio of the device, this function can determine the aspect ratio.
Getcharabcwidths Determines the A-B-C size of one or more characters in the turetype font
Getcharabcwidthsfloat Queries the A-B-C size of one or more characters in a font
Getcharacterplacement This function is used to understand how to display a string with a given character.
Getcharwidth Investigate the width of one or more characters in the font
Getfontdata Receives data from a scalable font file.
Getfontlanguageinfo Returns the font information that is currently selected for a specified device scenario.
Getglyphoutline Obtains the curve information of a character in the turetype font.
Getkerningpairs Obtains the padding information of a specified font.
Getoutlinetextmetrics Receive detailed information related to the internal features of the turetype font
Getrasterizercaps Check whether the system supports scalable fonts.
Gettabbedtextextent Determine the range occupied by a string and consider the factors of tabulation station expansion.
Gettextalign Receives the current text alignment mark for a device scenario
Gettextcharacterextra Judge the current value of the extra Character Spacing
Gettextcharset Receives the character set identifier of the font selected for the specified device scenario.
Gettextcharsetinfo Obtains detailed information about the character set of the selected font.
Gettextcolor Determine the current font color. It is also known as "foreground"
Gettextextentexpoint Determines the number of characters in the specified region. It also uses an array to load the range information of each character.
Gettextextentpoint Determine the size (range) of a string)
Gettextface Obtains the name of a font.
Gettextmetrics Obtains information related to the physical font selected for a device scenario.
Graystring Depicts a gray string. Windows is usually used to identify the prohibited status.
Polytextout Depicts a series of strings
Removefontresource Delete A Font Resource from a Windows system
Setmapperflags When you map fonts in Windows, you can use this function to select a grating font that matches the aspect ratio of the target device.
Settextalign Sets the text alignment mode and specifies the current location of the device scenario during text output.
Settextcharacterextra Specify the extra spacing to insert between characters when describing text
Settextcolor Set the current text color. This color is also called "foreground color"
Settextjustification You can use this function to align the two ends of the text by specifying the extra space occupied by a text line.
Tabbedtextout Supports a text plotting function for tabulation sites
Textout Text plotting Functions

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.