网站首页  词典首页

请输入您要查询的函数:

 

术语 getcharabcwidthsi
释义 GetCharABCWidthsI
语法:
BOOL GetCharABCWidthsI(
__in HDC hdc,
__in UINT giFirst,
__in UINT cgi,
__in LPWORD pgi,
__out LPABC lpabc
);
GetCharABCWidthsI功能
该GetCharABCWidthsI函数检索宽度,按逻辑单位连续字形指数在从目前的TrueType字体的指定范围。这个函数成功只有TrueType字体。
参数
hdc [in]
一个句柄,设备上下文。
giFirst [in]
在该指数连续字形组第一字形指数从目前的字体。此参数,如果只使用了PGI参数为NULL。
的CGI [in]
标志符号索引的数量。
环素 [in]
对一个数组,包含标志符号索引指针。如果该参数为NULL,giFirst参数来代替。 cgi参数指定的数组中的标志符号索引数量。
lpabc [out]
一个对美国广播公司结构的数组,它接收字符宽度的逻辑单位,指针。此数组必须至少包含许多美国广播公司的结构,因为由CGI参数指定的标志符号索引。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。
备注
光栅提供的TrueType字符后,美国广播公司特定点大小,间距已被选中。阿间距的距离添加到当前位置,然后存放字形。乙间距是对字形的黑色部分的宽度。荤间距的距离添加到当前位置,提供空白的标志符号的权利。总先进的宽度指定为A +乙+长
当GetCharABCWidthsI函数检索负A或C的宽度为一个字符,该字符包括underhangs或积压。
要转换ABC的宽度为字体设计单位,应用程序应使用的值存储在一OUTLINETEXTMETRIC结构otmEMSquare成员。此值可以通过调用函数的GetOutlineTextMetrics。
默认的字符的ABC宽度用于字符以外的范围,目前选定的字体。
要检索在非字型指数宽度,TrueType字体,应用程序应该使用GetCharWidthI功能。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
字体和文字概述
字体和文本函数
GetCharWidth
GetOutlineTextMetrics
OUTLINETEXTMETRIC
美国广播公司
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==GetCharABCWidthsI Function
The GetCharABCWidthsI function retrieves the widths, in logical units, of consecutive glyph indices in a specified range from the current TrueType font. This function succeeds only with TrueType fonts.
Syntax
BOOL GetCharABCWidthsI(
__in HDC hdc,
__in UINT giFirst,
__in UINT cgi,
__in LPWORD pgi,
__out LPABC lpabc
);
Parameters
hdc [in]
A handle to the device context.
giFirst [in]
The first glyph index in the group of consecutive glyph indices from the current font. This parameter is only used if the pgi parameter is NULL.
cgi [in]
The number of glyph indices.
pgi [in]
A pointer to an array that contains glyph indices. If this parameter is NULL, the giFirst parameter is used instead. The cgi parameter specifies the number of glyph indices in this array.
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 glyph indices specified by the cgi parameter.
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 GetCharABCWidthsI 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 glyph indices in non-TrueType fonts, applications should use the GetCharWidthI function.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
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/dd144859(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:30:09