网站首页  词典首页

请输入您要查询的函数:

 

术语 enumfontfamexproc
释义 EnumFontFamExProc
语法:
int CALLBACK EnumFontFamExProc(
__in ENUMLOGFONTEX *lpelfe,
__in NEWTEXTMETRICEX *lpntme,
__in DWORD FontType,
__in LPARAM lParam
);
EnumFontFamExProc功能
该EnumFontFamExProc函数是一个应用程序定义的回调函数与EnumFontFamiliesEx功能使用。它是用来处理字体。这就是所谓后为每个枚举字体。在FONTENUMPROC类型定义一个指向这个回调函数。 EnumFontFamExProc是一个定义的函数的名称申请预留位置。
参数
lpelfe [in]
对一个ENUMLOGFONTEX结构,包含字体的逻辑属性信息的指针。
这可以是一个ENUMLOGFONTEXDV结构。
lpntme [in]
一个结构,它包含关于字体的物理属性信息的指针。该函数使用的TrueType字体NEWTEXTMETRICEX结构和其他字体TEXTMETRIC结构。
这可以是一个ENUMTEXTMETRIC结构。
FontType [in]
字体类型。此参数可以是这些值的组合:
DEVICE_FONTTYPE
RASTER_FONTTYPE
TRUETYPE_FONTTYPE
lparam的 [in]
应用程序定义的EnumFontFamiliesEx功能传递的数据。
返回值
返回值必须是一个非零值,继续枚举;停止枚举,返回值必须为零。
备注
应用程序必须通过其登记地址的EnumFontFamiliesEx函数这个回调函数。
当设备上下文上的图形模式设置为GM_ADVANCED使用SetGraphicsMode功能和DEVICE_FONTTYPE标志传递给FontType参数,此函数返回一个类型为1和系统的OpenType字体的列表。图形模式时,未设置为GM_ADVANCED,此函数返回一个类型为1的OpenType名单,并在系统的TrueType字体。
不同的是EnumFontFamProc回调函数,EnumFontFamExProc接收延长一个字体信息。该ENUMLOGFONTEX结构包括脚本(字符集)和NEWTEXTMETRICEX结构本地化名称包括字体覆盖签名。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
Unicode和ANSI namesEnumFontFamExProcW(Unicode)和EnumFontFamExProcA(ANSI)的
参见
字体和文字概述
字体和文本函数
EnumFontFamiliesEx
EnumFontFamProc
ENUMLOGFONTEX
ENUMLOGFONTEXDV
ENUMTEXTMETRIC
NEWTEXTMETRICEX
TEXTMETRIC
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==EnumFontFamExProc Function
The EnumFontFamExProc function is an application defined callback function used with the EnumFontFamiliesEx function. It is used to process the fonts. It is called once for each enumerated font. The FONTENUMPROC type defines a pointer to this callback function. EnumFontFamExProc is a placeholder for the application defined function name.
Syntax
int CALLBACK EnumFontFamExProc(
__in ENUMLOGFONTEX *lpelfe,
__in NEWTEXTMETRICEX *lpntme,
__in DWORD FontType,
__in LPARAM lParam
);
Parameters
lpelfe [in]
A pointer to an ENUMLOGFONTEX structure that contains information about the logical attributes of the font.
This can be an ENUMLOGFONTEXDV structure.
lpntme [in]
A pointer to a structure that contains information about the physical attributes of a font. The function uses the NEWTEXTMETRICEX structure for TrueType fonts; and the TEXTMETRIC structure for other fonts.
This can be an ENUMTEXTMETRIC structure.
FontType [in]
The type of the font. This parameter can be a combination of these values:
DEVICE_FONTTYPE
RASTER_FONTTYPE
TRUETYPE_FONTTYPE
lParam [in]
The application-defined data passed by the EnumFontFamiliesEx function.
Return Value
The return value must be a nonzero value to continue enumeration; to stop enumeration, the return value must be zero.
Remarks
An application must register this callback function by passing its address to the EnumFontFamiliesEx function.
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.
Unlike the EnumFontFamProc callback function, EnumFontFamExProc receives extended information about a font. The ENUMLOGFONTEX structure includes the localized name of the script (character set) and the NEWTEXTMETRICEX structure includes a font-coverage signature.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
Unicode and ANSI namesEnumFontFamExProcW (Unicode) and EnumFontFamExProcA (ANSI)
See Also
Fonts and Text Overview
Font and Text Functions
EnumFontFamiliesEx
EnumFontFamProc
ENUMLOGFONTEX
ENUMLOGFONTEXDV
ENUMTEXTMETRIC
NEWTEXTMETRICEX
TEXTMETRIC
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162618(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:16:22