网站首页  词典首页

请输入您要查询的函数:

 

术语 getkerningpairs
释义 GetKerningPairs
语法:
DWORD GetKerningPairs(
__in HDC hdc,
__in DWORD nNumPairs,
__out LPKERNINGPAIR lpkrnpair
);
GetKerningPairs功能
该GetKerningPairs函数检索字符的字距调整为指定的设备环境对当前选定的字体。
参数
hdc [in]
一个句柄,设备上下文。
nNumPairs [in]
在lpkrnpair数组数对。如果字体有超过nNumPairs字距对,该函数返回一个错误。
lpkrnpair [out]
一个一个KERNINGPAIR结构的数组,它接收字距对指针。该数组必须至少包含像这位nNumPairs参数指定的许多结构。如果该参数为NULL,则函数返回的字体字距调整对的总数。
返回值
如果函数成功,返回值是字距对数返回。
如果函数失败,返回值是零。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinGdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
Unicode和ANSI namesGetKerningPairsW(Unicode)和GetKerningPairsA(ANSI)的
参见
字体和文字概述
字体和文本函数
KERNINGPAIR
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==GetKerningPairs Function
The GetKerningPairs function retrieves the character-kerning pairs for the currently selected font for the specified device context.
Syntax
DWORD GetKerningPairs(
__in HDC hdc,
__in DWORD nNumPairs,
__out LPKERNINGPAIR lpkrnpair
);
Parameters
hdc [in]
A handle to the device context.
nNumPairs [in]
The number of pairs in the lpkrnpair array. If the font has more than nNumPairs kerning pairs, the function returns an error.
lpkrnpair [out]
A pointer to an array of KERNINGPAIR structures that receives the kerning pairs. The array must contain at least as many structures as specified by the nNumPairs parameter. If this parameter is NULL, the function returns the total number of kerning pairs for the font.
Return Value
If the function succeeds, the return value is the number of kerning pairs returned.
If the function fails, the return value is zero.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinGdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
Unicode and ANSI namesGetKerningPairsW (Unicode) and GetKerningPairsA (ANSI)
See Also
Fonts and Text Overview
Font and Text Functions
KERNINGPAIR
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd144895(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:24:26