网站首页  词典首页

请输入您要查询的函数:

 

术语 enumfontfamproc
释义 EnumFontFamProc
语法:
int CALLBACK EnumFontFamProc(
__in ENUMLOGFONT *lpelf,
__in NEWTEXTMETRIC *lpntm,
__in DWORD FontType,
__in LPARAM lParam
);
EnumFontFamProc功能
该EnumFontFamProc函数是一个应用程序定义的回调函数与EnumFontFamilies功能使用。它接收数据描述可用的字体。在FONTENUMPROC类型定义一个指向这个回调函数。 EnumFontFamProc是一个应用程序的definedfunction名称的占位符。
注意:此功能仅提供了兼容性与16位的Windows版本。应用程序应该调用EnumFontFamiliesEx功能。
参数
lpelf [in]
对一个ENUMLOGFONT结构,包含字体的逻辑属性信息的指针。这种结构是本地定义。
这可以是一个ENUMLOGFONTEXDV结构。
lpntm [in]
一个 NEWTEXTMETRIC结构,它包含关于字体的物理属性的信息,如果字体是TrueType字体的指针。如果字体不是一个TrueType字体,这个参数是一个指向TEXTMETRIC结构的指针。
这可以是一个ENUMTEXTMETRIC结构。
FontType [in]
字体类型。此参数可以是以下值的组合:
DEVICE_FONTTYPE
RASTER_FONTTYPE
TRUETYPE_FONTTYPE
lparam的 [in]
该申请的指针定义的EnumFontFamilies传递的数据功能。
返回值
返回值必须是一个非零值,继续枚举;停止枚举,它必须返回零。
备注
应用程序必须通过其登记地址的EnumFontFamilies这个回调函数的功能。
当设备上下文上的图形模式设置为GM_ADVANCED使用SetGraphicsMode功能和DEVICE_FONTTYPE标志传递给FontType参数,此函数返回一个类型为1和系统的OpenType字体的列表。图形模式时,未设置为GM_ADVANCED,此函数返回一个类型为1的OpenType名单,并在系统的TrueType字体。
在与(&)运算符可以用来与RASTER_FONTTYPE,DEVICE_FONTTYPE,并TRUETYPE_FONTTYPE常量确定的字体。如果RASTER_FONTTYPE位被设置,字体是一种光栅字体。如果TRUETYPE_FONTTYPE位被设置,字体是TrueType字体。如果没有位被设置,字体是一种矢量字体。 DEVICE_FONTTYPE时设置设备(例如,激光打印机)支持下载TrueType字体或字体时,是一个设备上驻留的字体,它是零,如果该设备是一个显示适配器,点阵打印机,或其它光栅设备。应用程序也可以使用DEVICE_FONTTYPE区分图形设备接口(GDI)提供的光栅字体从设备提供的字体。 GDI可以模拟粗体,斜体,下划线和删除线的GDI的属性提供的光栅字体,而不是为设备提供的字体。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
Unicode和ANSI namesEnumFontFamProcW(Unicode)和EnumFontFamProcA(ANSI)的
参见
字体和文字概述
字体和文本函数
EnumFontFamilies
ENUMLOGFONT
ENUMLOGFONTEXDV
ENUMTEXTMETRIC
NEWTEXTMETRIC
TEXTMETRIC
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==EnumFontFamProc Function
The EnumFontFamProc function is an application defined callback function used with the EnumFontFamilies function. It receives data describing the available fonts. The FONTENUMPROC type defines a pointer to this callback function. EnumFontFamProc is a placeholder for the application definedfunction name.
Note This function is provided only for compatibility with 16-bit versions of Windows. Applications should call the EnumFontFamiliesEx function.
Syntax
int CALLBACK EnumFontFamProc(
__in ENUMLOGFONT *lpelf,
__in NEWTEXTMETRIC *lpntm,
__in DWORD FontType,
__in LPARAM lParam
);
Parameters
lpelf [in]
A pointer to an ENUMLOGFONT structure that contains information about the logical attributes of the font. This structure is locally defined.
This can be an ENUMLOGFONTEXDV structure.
lpntm [in]
A pointer to a NEWTEXTMETRIC structure that contains information about the physical attributes of the font, if the font is a TrueType font. If the font is not a TrueType font, this parameter is a pointer to a TEXTMETRIC structure.
This can be an ENUMTEXTMETRIC structure.
FontType [in]
The type of the font. This parameter can be a combination of the following values:
DEVICE_FONTTYPE
RASTER_FONTTYPE
TRUETYPE_FONTTYPE
lParam [in]
A pointer to the application-defined data passed by the EnumFontFamilies function.
Return Value
The return value must be a nonzero value to continue enumeration; to stop enumeration, it must return zero.
Remarks
An application must register this callback function by passing its address to the EnumFontFamilies 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.
The AND (&) operator can be used with the RASTER_FONTTYPE, DEVICE_FONTTYPE, and TRUETYPE_FONTTYPE constants to determine the font type. If the RASTER_FONTTYPE bit is set, the font is a raster font. If the TRUETYPE_FONTTYPE bit is set, the font is a TrueType font. If neither bit is set, the font is a vector font. DEVICE_FONTTYPE is set when a device (for example, a laser printer) supports downloading TrueType fonts or when the font is a device-resident font; it is zero if the device is a display adapter, dot-matrix printer, or other raster device. An application can also use DEVICE_FONTTYPE to distinguish graphics device interface (GDI)-supplied raster fonts from device-supplied fonts. GDI can simulate bold, italic, underline, and strikeout attributes for GDI-supplied raster fonts, but not for device-supplied fonts.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
Unicode and ANSI namesEnumFontFamProcW (Unicode) and EnumFontFamProcA (ANSI)
See Also
Fonts and Text Overview
Font and Text Functions
EnumFontFamilies
ENUMLOGFONT
ENUMLOGFONTEXDV
ENUMTEXTMETRIC
NEWTEXTMETRIC
TEXTMETRIC
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162621(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:26:28