网站首页  词典首页

请输入您要查询的函数:

 

术语 getcharabcwidthsfloat
释义 GetCharABCWidthsFloat
语法:
BOOL GetCharABCWidthsFloat(
__in HDC hdc,
__in UINT iFirstChar,
__in UINT iLastChar,
__out LPABCFLOAT lpABCF
);
GetCharABCWidthsFloat功能
该GetCharABCWidthsFloat函数检索宽度,按逻辑单位连续字符,从目前的字体指定的范围。
参数
hdc [in]
句柄设备上下文。
iFirstChar [in]
指定的字符组连续在美国广播公司的宽度抱持第一个字符的代码点。
iLastChar [in]
指定的字符组连续在美国广播公司的宽度抱持最后一个字符的代码点。这种范围广泛。返回一个错误如果指定的最后一个字符之前指定的第一个字符。
lpABCF [out]
指针的ABCFLOAT结构的数组,它接收字符宽度的逻辑单位。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。
备注
不同的是GetCharABCWidths功能,只为TrueType字体的回报宽度的GetCharABCWidthsFloat函数检索的任何字体宽度。此函数返回的宽度在IEEE浮点格式。
如果目前的世界到设备的转变尚未确定,返回的宽度可能是整数的值,即使在设备空间相应的值是整数。
阿间距的距离添加到当前位置,然后存放字形。乙间距是对字形的黑色部分的宽度。荤间距的距离添加到当前位置,提供空白的标志符号的权利。总先进的宽度指定为A +乙+长
ABC的空间测量沿着选定的字体字符的底线。
默认的字符的ABC宽度用于字符以外的范围,目前选定的字体。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
Unicode和ANSI namesGetCharABCWidthsFloatW(Unicode)和GetCharABCWidthsFloatA(ANSI)的
参见
字体和文字概述
字体和文本函数
ABCFLOAT
GetCharABCWidths
GetCharWidth
GetCharWidthFloat
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==GetCharABCWidthsFloat Function
The GetCharABCWidthsFloat function retrieves the widths, in logical units, of consecutive characters in a specified range from the current font.
Syntax
BOOL GetCharABCWidthsFloat(
__in HDC hdc,
__in UINT iFirstChar,
__in UINT iLastChar,
__out LPABCFLOAT lpABCF
);
Parameters
hdc [in]
Handle to the device context.
iFirstChar [in]
Specifies the code point of the first character in the group of consecutive characters where the ABC widths are seeked.
iLastChar [in]
Specifies the code point of the last character in the group of consecutive characters where the ABC widths are seeked. This range is inclusive. An error is returned if the specified last character precedes the specified first character.
lpABCF [out]
Pointer to an array of ABCFLOAT structures that receives the character widths, in logical units.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Remarks
Unlike the GetCharABCWidths function that returns widths only for TrueType fonts, the GetCharABCWidthsFloat function retrieves widths for any font. The widths returned by this function are in the IEEE floating-point format.
If the current world-to-device transformation is not identified, the returned widths may be noninteger values, even if the corresponding values in the device space are integers.
A spacing is the distance added to the current position before placing the glyph. B spacing is the width of the black part of the glyph. C spacing is the distance added to the current position to provide white space to the right of the glyph. The total advanced width is specified by A+B+C.
The ABC spaces are measured along the character base line of the selected font.
The ABC widths of the default character are used for characters outside the range of the currently selected font.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
Unicode and ANSI namesGetCharABCWidthsFloatW (Unicode) and GetCharABCWidthsFloatA (ANSI)
See Also
Fonts and Text Overview
Font and Text Functions
ABCFLOAT
GetCharABCWidths
GetCharWidth
GetCharWidthFloat
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd144858(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:32:21