网站首页  词典首页

请输入您要查询的函数:

 

术语 addfontresourceex
释义 AddFontResourceEx
语法:
int AddFontResourceEx(
__in LPCTSTR lpszFilename,
__in DWORD fl,
__in PVOID pdv
);
AddFontResourceEx功能
函数添加的AddFontResourceEx从指定的文件到系统的字体资源。字体与AddFontResourceEx加入的功能可作为私营和枚举标记。
参数
lpszFilename [in]
一个指向 null 结尾的字符串指针,其中包含一个有效的字体文件名。此参数可以指定下列任何文件。
文件ExtensionMeaning
。fonFont资源文件。
。fntRaw位图字体文件。
。ttfRaw TrueType字体文件。
。ttcEast亚洲视窗:TrueType字体的集合。
。fotTrueType资源文件。
。otfPostScript OpenType字体。
。mmmmultiple主Type1字体资源文件。必须使用。PFM和。PFB文件。
。pfbType 1字体位文件。这是一起使用。烤瓷文件。
。pfmType 1字体度量文件。这是一起使用。五氟苯文件。
要添加的字体,其信息来自多个资源文件,指向lpszFileName一个由1 | -例如分隔的文件名字符串,abcxxxxx.pfm | abcxxxxx.pfb。
fl [in]
对字体的特征被添加到系统中。此参数可以是下列值之一。
ValueMeaning
FR_PRIVATESpecifies,只有过程,称为AddFontResourceEx函数可以使用此字体。当字体名称字体匹配的公共,私人字体将被选择。当进程终止时,该系统将消除与AddFontResourceEx功能的过程中安装的所有字体。
FR_NOT_ENUMSpecifies没有进程,包括进程称为AddFontResourceEx功能,可枚举此字体。
pdv [in]
保留。必须为零。
返回值
如果函数成功,返回值指定字体的数量增加。
如果函数失败,返回值是零。没有扩展的错误信息是可用。
备注
这个功能允许一个进程使用,而不允许其他进程访问字体。
当一个应用程序不再需要一个字体资源它通过调用AddFontResourceEx函数加载时,它必须删除通过调用RemoveFontResourceEx职能所需的资源。
此功能只安装了本届会议的字体。当系统重新启动后,字体将不存在。有字体,即使重新启动系统后,安装,字体必须列在注册表中。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
Unicode和ANSI namesAddFontResourceExW(Unicode)和AddFontResourceExA(ANSI)的
参见
字体和文字概述
字体和文本函数
RemoveFontResourceEx
SendMessage消息
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==AddFontResourceEx Function
The AddFontResourceEx function adds the font resource from the specified file to the system. Fonts added with the AddFontResourceEx function can be marked as private and not enumerable.
Syntax
int AddFontResourceEx(
__in LPCTSTR lpszFilename,
__in DWORD fl,
__in PVOID pdv
);
Parameters
lpszFilename [in]
A pointer to a null-terminated character string that contains a valid font file name. This parameter can specify any of the following files.
File ExtensionMeaning
.fonFont resource file.
.fntRaw bitmap font file.
.ttfRaw TrueType file.
.ttcEast Asian Windows: TrueType font collection.
.fotTrueType resource file.
.otfPostScript OpenType font.
.mmmmultiple master Type1 font resource file. It must be used with .pfm and .pfb files.
.pfbType 1 font bits file. It is used with a .pfm file.
.pfmType 1 font metrics file. It is used with a .pfb file.

To add a font whose information comes from several resource files, point lpszFileName to a string with the file names separated by a | --for example, abcxxxxx.pfm | abcxxxxx.pfb.
fl [in]
The characteristics of the font to be added to the system. This parameter can be one of the following values.
ValueMeaning
FR_PRIVATESpecifies that only the process that called the AddFontResourceEx function can use this font. When the font name matches a public font, the private font will be chosen. When the process terminates, the system will remove all fonts installed by the process with the AddFontResourceEx function.
FR_NOT_ENUMSpecifies that no process, including the process that called the AddFontResourceEx function, can enumerate this font.

pdv [in]
Reserved. Must be zero.
Return Value
If the function succeeds, the return value specifies the number of fonts added.
If the function fails, the return value is zero. No extended error information is available.
Remarks
This function allows a process to use fonts without allowing other processes access to the fonts.
When an application no longer needs a font resource it loaded by calling the AddFontResourceEx function, it must remove the resource by calling the RemoveFontResourceEx function.
This function installs the font only for the current session. When the system restarts, the font will not be present. To have the font installed even after restarting the system, the font must be listed in the registry.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
Unicode and ANSI namesAddFontResourceExW (Unicode) and AddFontResourceExA (ANSI)
See Also
Fonts and Text Overview
Font and Text Functions
RemoveFontResourceEx
SendMessage
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd183327(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:30:09