settextcharacterextra (gdi32)
Last changed: -196.25.255.194

.
Summary

C# Signature:

[DllImport("gdi32.dll")]
static extern int SetTextCharacterExtra(IntPtr hdc, int nCharExtra);

User-Defined Types:

None.

Notes:

Windows XP: Using this function with gdiPlus measurestring function results in a measured string that does not include the character spacing. However, when drawing strings with gdiPlus drawString method the character spacing is recognized, but if the text is underlined the drawString does not recognize it.

Windows XP: Using this function with the DrawText function in GDI causes the "!" character and some other characters to be placed improperly. However, using the TextOut function to draw text with GDI causes all characters to be placed properly with additional extra character spacing.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation