网站首页  词典首页

请输入您要查询的函数:

 

术语 enumfontfamilies
释义 EnumFontFamilies
语法:
int EnumFontFamilies(
__in HDC hdc,
__in LPCTSTR lpszFamily,
__in FONTENUMPROC lpEnumFontFamProc,
__in LPARAM lParam
);
EnumFontFamilies功能
该EnumFontFamilies函数枚举指定的字体在家庭中指定的设备上可用的字体。
注意:此功能仅提供了兼容性与16位的Windows版本。应用程序应该使用EnumFontFamiliesEx功能。
参数
hdc [in]
一个句柄,设备上下文。
lpszFamily [in]
一个指向 null 结尾的字符串指针,指定所需的字体的姓氏。如果lpszFamily为NULL,EnumFontFamilies选择并列举每个可用一个型家庭的字体。
lpEnumFontFamProc [in]
阿应用程序定义的回调函数指针。有关信息,请EnumFontFamProc。
lparam的 [in]
指针到应用提供的数据。数据传递给回调函数随着字体信息。
返回值
返回值是最后一个值的回调函数返回。其含义是特定于实现的。
备注
对于每一个具有字体名称的lpszFamily参数指定字体,EnumFontFamilies函数检索有关该字体的信息并将其传递给函数指出的lpEnumFontFamProc参数。应用程序定义的回调函数可以根据需要处理字体信息。枚举继续进行,直到有没有更多的字体或回调函数返回零。
当设备上下文上的图形模式设置为GM_ADVANCED使用SetGraphicsMode功能和DEVICE_FONTTYPE标志传递给FontType参数,此函数返回一个类型为1和系统的OpenType字体的列表。图形模式时,未设置为GM_ADVANCED,此函数返回一个类型为1的OpenType名单,并在系统的TrueType字体。
许多东亚语言的字体有两种字体名称:英文名称和本地化的名称。 EnumFonts,EnumFontFamilies和EnumFontFamiliesEx返回英文字体名称,如果系统区域设置不匹配字体的语言。
实例
例如,见枚举已安装的字体。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
Unicode和ANSI namesEnumFontFamiliesW(Unicode)和EnumFontFamiliesA(ANSI)的
参见
字体和文字概述
字体和文本函数
EnumFonts
EnumFontFamiliesEx
EnumFontFamProc
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==EnumFontFamilies Function
The EnumFontFamilies function enumerates the fonts in a specified font family that are available on a specified device.
Note This function is provided only for compatibility with 16-bit versions of Windows. Applications should use the EnumFontFamiliesEx function.
Syntax
int EnumFontFamilies(
__in HDC hdc,
__in LPCTSTR lpszFamily,
__in FONTENUMPROC lpEnumFontFamProc,
__in LPARAM lParam
);
Parameters
hdc [in]
A handle to the device context.
lpszFamily [in]
A pointer to a null-terminated string that specifies the family name of the desired fonts. If lpszFamily is NULL, EnumFontFamilies selects and enumerates one font of each available type family.
lpEnumFontFamProc [in]
A pointer to the application defined callback function. For information, see EnumFontFamProc .
lParam [in]
A pointer to application-supplied data. The data is passed to the callback function along with the font information.
Return Value
The return value is the last value returned by the callback function. Its meaning is implementation specific.
Remarks
For each font having the typeface name specified by the lpszFamily parameter, the EnumFontFamilies function retrieves information about that font and passes it to the function pointed to by the lpEnumFontFamProc parameter. The application defined callback function can process the font information as desired. Enumeration continues until there are no more fonts or the callback function returns zero.
When the graphics mode on the device context is set to GM_ADVANCED using the SetGraphicsMode function and the DEVICE_FONTTYPE flag is passed to the FontType parameter, this function returns a list of type 1 and OpenType fonts on the system. When the graphics mode is not set to GM_ADVANCED, this function returns a list of type 1, OpenType, and TrueType fonts on the system.
The fonts for many East Asian languages have two typeface names: an English name and a localized name. EnumFonts , EnumFontFamilies, and EnumFontFamiliesEx return the English typeface name if the system locale does not match the language of the font.
Examples
For examples, see Enumerating the Installed Fonts .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
Unicode and ANSI namesEnumFontFamiliesW (Unicode) and EnumFontFamiliesA (ANSI)
See Also
Fonts and Text Overview
Font and Text Functions
EnumFonts
EnumFontFamiliesEx
EnumFontFamProc
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162619(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 13:24:51