|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| Yes
| Win32s
| No
| Import Library
| gdi32.lib
| Header File
| wingdi.h
| Unicode
| WinNT
| Platform Notes
| Windows 95: int == 16 bits
|
|
|
GetCharWidthFloat
The GetCharWidthFloat function retrieves the fractional widths of consecutive characters in a
specified range from the current font.
BOOL GetCharWidthFloat(
HDC hdc,
| // handle of device context
| UINT iFirstChar,
| // first-character code point
| UINT iLastChar,
| // last-character code point
| PFLOAT pxBuffer
| // address of buffer that receives width-values
| );
|
|
Parameters
hdc
Identifies the device context.
iFirstChar
Specifies the code point of the first character in the group of consecutive
characters.
iLastChar
Specifies the code point of the last character in the group of consecutive
characters.
pxBuffer
Points to a buffer to receive the character widths.
Return Values
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error
information, call GetLastError.
Remarks
The returned widths are in the 32-bit IEEE floating-point format. (The widths
are measured along the base line of the characters.)
If the iFirstChar parameter identifies the letter a and the iLastChar parameter identifies the letter z, GetCharWidthFloat retrieves the widths of all lowercase characters.
If a character does not exist in the current font, it is assigned the width of
the default character.
See Also
GetCharABCWidths, GetCharABCWidthsFloat, GetCharWidth32
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
More Online Helps
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|