Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than gdi32, prefix the name with the module name and a period.
SetTextCharacterExtra (gdi32)
.
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!
The SetTextCharacterExtra API
3/16/2007 7:46:23 AM - -196.25.255.194
The DrawTextEx API
9/30/2009 6:52:37 AM - -205.210.232.62
The TextOut API
4/21/2013 6:44:24 AM - -81.217.152.144
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).