2.12 Text Functions

Text functions retrieve text information, alter text alignment, alter text justification, and write text on a device or display surface. GDI uses the current font for text output. The following list briefly describes each text function:

Function Description  
ExtTextOut Writes a character string, within a rectangular region, using the currently selected font. The rectangular region can be opaque (filled with the current background color) and it can be a clipping region.  
GetTabbedTextExtent Computes the width and height of a line of text containing tab characters.  
GetTextAlign Returns a mask of the text alignment flags.  
GetTextExtent Uses the current font to compute the width and height of text.  
GetTextFace Copies the current font name to a buffer.  
GetTextMetrics Fills the buffer with metrics for the selected font.  
SetTextAlign Positions a string of text on a display or device.  
SetTextJustification Justifies a text line.  
TabbedTextOut Writes a character string with expanded tabs, using the current font.  
TextOut Writes a character string using the current font.