网站首页  词典首页

请输入您要查询的函数:

 

术语 setmapperflags
释义 SetMapperFlags
语法:
DWORD SetMapperFlags(
__in HDC hdc,
__in DWORD dwFlag
);
SetMapperFlags功能
该SetMapperFlags功能改变字体映射器的算法时所使用的逻辑字体映射到物理字体。
参数
hdc [in]
阿处理设备环境,包含字体映射器标志。
dwFlag [in]
指定字体映射器是否应尝试匹配字体的宽高比当前设备的纵横比。如果零位被设置,映射器只选择匹配的字体。
返回值
如果函数成功,返回值是以前的字体值映射器标志。
如果函数失败,返回值是GDI_ERROR。
备注
如果dwFlag参数设置,不存在匹配的字体,Windows选择一个新的长宽比和检索的字体匹配这个比例。
该dwFlag参数其余位必须为零。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
字体和文字概述
字体和文本函数
GetAspectRatioFilterEx
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==SetMapperFlags Function
The SetMapperFlags function alters the algorithm the font mapper uses when it maps logical fonts to physical fonts.
Syntax
DWORD SetMapperFlags(
__in HDC hdc,
__in DWORD dwFlag
);
Parameters
hdc [in]
A handle to the device context that contains the font-mapper flag.
dwFlag [in]
Specifies whether the font mapper should attempt to match a font's aspect ratio to the current device's aspect ratio. If bit zero is set, the mapper selects only matching fonts.
Return Value
If the function succeeds, the return value is the previous value of the font-mapper flag.
If the function fails, the return value is GDI_ERROR.
Remarks
If the dwFlag parameter is set and no matching fonts exist, Windows chooses a new aspect ratio and retrieves a font that matches this ratio.
The remaining bits of the dwFlag parameter must be zero.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
See Also
Fonts and Text Overview
Font and Text Functions
GetAspectRatioFilterEx
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162981(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:25:58