术语 | getcharabcwidths |
释义 | GetCharABCWidths 语法: BOOL GetCharABCWidths( __in HDC hdc, __in UINT uFirstChar, __in UINT uLastChar, __out LPABC lpabc ); GetCharABCWidths功能 该GetCharABCWidths函数检索宽度,按逻辑单位连续字符,从目前的TrueType字体的指定范围。这个函数成功只有TrueType字体。 参数 hdc [in] 一个句柄,设备上下文。 uFirstChar [in] 在连续字符组的第一个字符由目前的字体。 uLastChar [in] 在连续字符组的最后一个字符从目前的字体。 lpabc [out] 一个对美国广播公司结构的数组,它接收字符宽度的逻辑单位,指针。此数组必须至少包含许多美国广播公司的结构,因为在由uFirstChar和uLastChar参数指定的字符范围。 返回值 如果函数成功,返回值为非零 如果函数失败,返回值是零。 备注 光栅提供的TrueType字符后,美国广播公司特定点大小,间距已被选中。阿间距的距离添加到当前位置,然后存放字形。乙间距是对字形的黑色部分的宽度。荤间距的距离添加到当前位置,提供空白的标志符号的权利。总先进的宽度指定为A +乙+长 当GetCharABCWidths函数的一个字符检索负A或C宽度,该字符包括underhangs或积压。 要转换ABC的宽度为字体设计单位,应用程序应使用的值存储在一OUTLINETEXTMETRIC结构otmEMSquare成员。此值可以通过调用函数的GetOutlineTextMetrics。 默认的字符的ABC宽度用于字符以外的范围,目前选定的字体。 要检索在非宽度的字符的TrueType字体,应用程序应该使用GetCharWidth功能。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWingdi.h(头文件:winuser.h) LibraryGdi32.lib DLLGdi32.dll Unicode和ANSI namesGetCharABCWidthsW(Unicode)和GetCharABCWidthsA(ANSI)的 参见 字体和文字概述 字体和文本函数 GetCharWidth GetOutlineTextMetrics OUTLINETEXTMETRIC 美国广播公司 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月11日 ==英文原文==GetCharABCWidths Function The GetCharABCWidths function retrieves the widths, in logical units, of consecutive characters in a specified range from the current TrueType font. This function succeeds only with TrueType fonts. Syntax BOOL GetCharABCWidths( __in HDC hdc, __in UINT uFirstChar, __in UINT uLastChar, __out LPABC lpabc ); Parameters hdc [in] A handle to the device context. uFirstChar [in] The first character in the group of consecutive characters from the current font. uLastChar [in] The last character in the group of consecutive characters from the current font. lpabc [out] A pointer to an array of ABC structures that receives the character widths, in logical units. This array must contain at least as many ABC structures as there are characters in the range specified by the uFirstChar and uLastChar parameters. Return Value If the function succeeds, the return value is nonzero If the function fails, the return value is zero. Remarks The TrueType rasterizer provides ABC character spacing after a specific point size has been selected. 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. When the GetCharABCWidths function retrieves negative A or C widths for a character, that character includes underhangs or overhangs. To convert the ABC widths to font design units, an application should use the value stored in the otmEMSquare member of a OUTLINETEXTMETRIC structure. This value can be retrieved by calling the GetOutlineTextMetrics function. The ABC widths of the default character are used for characters outside the range of the currently selected font. To retrieve the widths of characters in non-TrueType fonts, applications should use the GetCharWidth function. Requirements Minimum supported clientWindows 2000 Professional Minimum supported serverWindows 2000 Server HeaderWingdi.h (include Windows.h) LibraryGdi32.lib DLLGdi32.dll Unicode and ANSI namesGetCharABCWidthsW (Unicode) and GetCharABCWidthsA (ANSI) See Also Fonts and Text Overview Font and Text Functions GetCharWidth GetOutlineTextMetrics OUTLINETEXTMETRIC ABC Send comments about this topic to Microsoft Build date: 7/11/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/dd144857(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。