网站首页  词典首页

请输入您要查询的函数:

 

术语 enumfonts
释义 EnumFonts
语法:
int EnumFonts(
__in HDC hdc,
__in LPCTSTR lpFaceName,
__in FONTENUMPROC lpFontFunc,
__in LPARAM lParam
);
EnumFonts功能
该EnumFonts函数枚举字体在指定的设备可用。对于每个指定的字体名称字体,EnumFonts函数检索信息的字体,并将其传递给应用程序定义的回调函数。此回调函数可处理为所需的字体信息。枚举继续进行,直到有没有更多的字体或回调函数返回零。
注意:此功能仅提供了兼容性与16位的Windows版本。应用程序应该使用EnumFontFamiliesEx功能。
参数
hdc [in]
一个句柄,设备上下文。
lpFaceName [in]
一个指向 null 结尾的字符串指针,指定所需的字体的字体名称。如果lpFaceName为NULL,EnumFonts随机选择,并列举一每个可用字体的字体。
lpFontFunc [in]
该申请definedcallback函数指针。有关更多信息,请参阅EnumFontsProc。
lparam的 [in]
A到任何应用程序的指针定义的数据。数据传递给回调函数随着字体信息。
返回值
返回值是最后一个值的回调函数返回。其含义是指由应用程序。
备注
使用EnumFontFamiliesEx代替EnumFonts。该EnumFontFamiliesEx功能不同之处在于它检索风格的TrueType字体相关名称的功能从EnumFonts。有了EnumFontFamiliesEx,您可以检索有关信息,字体样式不能枚举使用EnumFonts功能。
许多东亚语言的字体有两种字体名称:英文名称和本地化的名称。 EnumFonts,EnumFontFamilies和EnumFontFamiliesEx返回英文字体名称,如果系统区域设置不匹配字体的语言。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
Unicode和ANSI namesEnumFontsW(Unicode)和EnumFontsA(ANSI)的
参见
字体和文字概述
字体和文本函数
EnumFontFamilies
EnumFontFamiliesEx
EnumFontsProc
GetDeviceCaps
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==EnumFonts Function
The EnumFonts function enumerates the fonts available on a specified device. For each font with the specified typeface name, the EnumFonts function retrieves information about that font and passes it to the application defined callback function. This callback function can process the font information as desired. Enumeration continues until there are no more fonts or the callback function returns zero.
Note This function is provided only for compatibility with 16-bit versions of Windows. Applications should use the EnumFontFamiliesEx function.
Syntax
int EnumFonts(
__in HDC hdc,
__in LPCTSTR lpFaceName,
__in FONTENUMPROC lpFontFunc,
__in LPARAM lParam
);
Parameters
hdc [in]
A handle to the device context.
lpFaceName [in]
A pointer to a null-terminated string that specifies the typeface name of the desired fonts. If lpFaceName is NULL, EnumFonts randomly selects and enumerates one font of each available typeface.
lpFontFunc [in]
A pointer to the application definedcallback function. For more information, see EnumFontsProc .
lParam [in]
A pointer to any application-defined 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 defined by the application.
Remarks
Use EnumFontFamiliesEx instead of EnumFonts. The EnumFontFamiliesEx function differs from the EnumFonts function in that it retrieves the style names associated with a TrueType font. With EnumFontFamiliesEx, you can retrieve information about font styles that cannot be enumerated using the EnumFonts function.
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.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
Unicode and ANSI namesEnumFontsW (Unicode) and EnumFontsA (ANSI)
See Also
Fonts and Text Overview
Font and Text Functions
EnumFontFamilies
EnumFontFamiliesEx
EnumFontsProc
GetDeviceCaps
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162622(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:19:47