The SetTextCharacterExtra function sets the intercharacter spacing. Intercharacter spacing is added to each character, including break characters, when the system writes a line of text.
int SetTextCharacterExtra(
HDC hdc, // handle to device context
int nCharExtra // extra-space value
);
If the function succeeds, the return value is the previous intercharacter spacing.
If the function fails, the return value is 0x80000000.
Windows NT: To get extended error information, call GetLastError.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in wingdi.h.
Import Library: Use gdi32.lib.
Fonts and Text Overview, Font and Text Functions, DrawText, GetTextCharacterExtra, TextOut