The GetCharWidthFloat function retrieves the fractional widths of consecutive characters in a specified range from the current font.
BOOL GetCharWidthFloatA( HDC hdc, UINT iFirst, UINT iLast, PFLOAT lpBuffer );
A handle to the device context.
The code point of the first character in the group of consecutive characters.
The code point of the last character in the group of consecutive characters.
A pointer to a buffer that receives the character widths, in logical units.
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
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 specifies the letter a and the iLastChar parameter specifies 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.
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|
|Header||wingdi.h (include Windows.h)|