Text and font functions of APIs

Source: Internet
Author: User
AddFontResource To add a font resource to a Windows system
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 it can be added to the Windows system using API functions AddFontResource
DrawText Paints the text in a specified rectangle
Drawtextex Similar to DrawText, just adding more features
EnumFontFamilies Enumerates the fonts available for the specified device
Enumfontfamiliesex Enumerates the fonts available for the specified device
Enumfonts Enumerates the fonts available for the specified device
ExtTextOut An extended text-portraying function. Also refer to the SetTextAlign function
Getaspectratiofilterex This function can determine the aspect ratio by using SetMapperFlags to require Windows to select only raster fonts that match the current aspect ratio of the device
Getcharabcwidths To determine the a-b-c size of one or more characters in a turetype font
Getcharabcwidthsfloat Query the a-b-c dimensions of one or more characters in a font
GetCharacterPlacement This function is used to learn how to display a string with a given character
Getcharwidth Investigate the width of one or more characters in a font
GetFontData Receive data for a scalable font file
GetFontLanguageInfo Returns information about the font currently selected in the specified device scene
Getglyphoutline Gets the curve information that makes up a character in the Turetype font
Getkerningpairs Gets the kerning information for the specified font
Getoutlinetextmetrics Receive detailed information about the internal characteristics of the Turetype font
Getrasterizercaps Understand if the system has the ability to support scalable fonts
Gettabbedtextextent Judge the scope of a string, and consider the factor of the expansion of the tabulation station.
Gettextalign Receive the current text alignment flag for a device scene
Gettextcharacterextra To determine the current value of extra character spacing
Gettextcharset Receives the character set identifier of the font currently selected for the specified device scene
Gettextcharsetinfo Gets more information about the character set of the currently selected font
GetTextColor Determines the current font color. Often referred to as the "foreground color"
Gettextextentexpoint Determines the number of characters to fill in the specified range. Also loads the range information of each character with an array
Gettextextentpoint Judge the size of a string (range)
Gettextface Gets the typeface name of a font
GetTextMetrics Get information about the physical fonts selected in a device scenario
GrayString Depicts a string that appears in gray. Typically used by Windows to identify a banned state
Polytextout To depict a series of strings
RemoveFontResource Remove a font resource from the Windows system
SetMapperFlags When Windows maps fonts, you can use this function to select Raster fonts that match the aspect ratio of the target device
SetTextAlign Sets the text alignment and specifies that the current location of the device scene is used during text output
SetTextCharacterExtra When describing text, specify the extra spacing to insert in the character Fu
SetTextColor Sets the current text color. This color is also known as the "foreground color"
SetTextJustification You can use this function to justify text by specifying the extra space that a line of text should occupy
TabbedTextOut A text depiction function that supports a tab stop
TextOut Text Drawing 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.