Export (0) Print
Expand All

GetTextCharacterExtra function

The GetTextCharacterExtra function retrieves the current intercharacter spacing for the specified device context.

Syntax


int GetTextCharacterExtra(
  _In_  HDC hdc
);

Parameters

hdc [in]

Handle to the device context.

Return value

If the function succeeds, the return value is the current intercharacter spacing, in logical coordinates.

If the function fails, the return value is 0x8000000.

Remarks

The intercharacter spacing defines the extra space, in logical units along the base line, that the TextOut or ExtTextOut functions add to each character as a line is written. The spacing is used to expand lines of text.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Wingdi.h (include Windows.h)

Library

Gdi32.lib

DLL

Gdi32.dll

See also

Fonts and Text Overview
Font and Text Functions
ExtTextOut
SetTextCharacterExtra
TextOut

 

 

Community Additions

ADD
Show:
© 2014 Microsoft