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 |
); |
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.
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.
GetCharABCWidths, GetCharABCWidthsFloat, GetCharWidth32
See:
file: /Techref/os/win/api/win32/func/src/f28_1.htm, 3KB, , updated: 2001/6/26 09:43, local time: 2024/11/13 19:32,
3.144.172.9:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://massmind.ecomorder.com/techref/os/win/api/win32/func/src/f28_1.htm"> GetCharWidthFloat</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to massmind.ecomorder.com! |
.