网站首页  词典首页

请输入您要查询的函数:

 

术语 getglyphindices
释义 GetGlyphIndices
语法:
DWORD GetGlyphIndices(
__in HDC hdc,
__in LPCTSTR lpstr,
__in int c,
__out LPWORD pgi,
__in DWORD fl
);
GetGlyphIndices功能
该GetGlyphIndices函数转换成一个标志符号索引的数组字符串。该函数可用于确定是否字形的字体存在。
参数
hdc [in]
一个句柄,设备上下文。
lpstr [in]
阿为字符串指针转换。
? [in]
这两个字符串的长度的长度指向LPSTR和大小(以字的缓冲区)指向环素。
环素[out]
这个缓冲区必须维角在成功返回,包含一个标志符号指数,对应的字符串的字符数组。
fl [in]
指定字形应如何处理,如果他们不支持。此参数可以是以下值。
ValueMeaning
与十六进制值0xFFFF的GGI_MARK_NONEXISTING_GLYPHSMarks不受支持的字形。
返回值
如果函数成功,它返回的字节数(为ANSI函数)或词(为Unicode函数)转换。
如果函数失败,返回值是GDI_ERROR。
备注
这个函数试图确定一个单一的每个字符在字符串中字形代表指向lpstr。虽然这是有用的某些低层次的目的(如操纵字体文件),更高级别的应用,希望映射字符串字型通常希望使用的Uniscribe功能。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
Unicode和ANSI namesGetGlyphIndicesW(Unicode)和GetGlyphIndicesA(ANSI)的
参见
字体和文字概述
字体和文本函数
GetFontUnicodeRanges
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==GetGlyphIndices Function
The GetGlyphIndices function translates a string into an array of glyph indices. The function can be used to determine whether a glyph exists in a font.
Syntax
DWORD GetGlyphIndices(
__in HDC hdc,
__in LPCTSTR lpstr,
__in int c,
__out LPWORD pgi,
__in DWORD fl
);
Parameters
hdc [in]
A handle to the device context.
lpstr [in]
A pointer to the string to be converted.
c [in]
The length of both the length of the string pointed to by lpstr and the size (in WORDs) of the buffer pointed to by pgi.
pgi [out]
This buffer must be of dimension c. On successful return, contains an array of glyph indices corresponding to the characters in the string.
fl [in]
Specifies how glyphs should be handled if they are not supported. This parameter can be the following value.
ValueMeaning
GGI_MARK_NONEXISTING_GLYPHSMarks unsupported glyphs with the hexadecimal value 0xffff.

Return Value
If the function succeeds, it returns the number of bytes (for the ANSI function) or WORDs (for the Unicode function) converted.
If the function fails, the return value is GDI_ERROR.
Remarks
This function attempts to identify a single-glyph representation for each character in the string pointed to by lpstr. While this is useful for certain low-level purposes (such as manipulating font files), higher-level applications that wish to map a string to glyphs will typically wish to use the Uniscribe functions.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
Unicode and ANSI namesGetGlyphIndicesW (Unicode) and GetGlyphIndicesA (ANSI)
See Also
Fonts and Text Overview
Font and Text Functions
GetFontUnicodeRanges
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd144890(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:58