术语 | getoutlinetextmetrics |
释义 | GetOutlineTextMetrics 语法: UINT GetOutlineTextMetrics( __in HDC hdc, __in UINT cbData, __out LPOUTLINETEXTMETRIC lpOTM ); GetOutlineTextMetrics功能 该GetOutlineTextMetrics函数检索的TrueType字体的文本数据。 参数 hdc [in] 一个句柄,设备上下文。 cbData [in] 大小,以字节数组的接收文本数据。 lpOTM [out] 一个一个OUTLINETEXTMETRIC结构的数组指针。如果该参数为NULL,则函数返回的检索到所需的度量数据缓冲区大小。 返回值 如果函数成功,返回值为非零或所需的缓冲区大小。 如果函数失败,返回值是零。 备注 该OUTLINETEXTMETRIC结构包含文本的最度量信息提供的TrueType字体(包括TEXTMETRIC结构)。在OUTLINETEXTMETRIC结构返回的大小是以逻辑单位,他们对当前映射模式而定。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWingdi.h(头文件:winuser.h) LibraryGdi32.lib DLLGdi32.dll Unicode和ANSI namesGetOutlineTextMetricsW(Unicode)和GetOutlineTextMetricsA(ANSI)的 参见 字体和文字概述 字体和文本函数 GetTextMetrics OUTLINETEXTMETRIC TEXTMETRIC 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月11日 ==英文原文==GetOutlineTextMetrics Function The GetOutlineTextMetrics function retrieves text metrics for TrueType fonts. Syntax UINT GetOutlineTextMetrics( __in HDC hdc, __in UINT cbData, __out LPOUTLINETEXTMETRIC lpOTM ); Parameters hdc [in] A handle to the device context. cbData [in] The size, in bytes, of the array that receives the text metrics. lpOTM [out] A pointer to an array of OUTLINETEXTMETRIC structures. If this parameter is NULL, the function returns the size of the buffer required for the retrieved metric data. Return Value If the function succeeds, the return value is nonzero or the size of the required buffer. If the function fails, the return value is zero. Remarks The OUTLINETEXTMETRIC structure contains most of the text metric information provided for TrueType fonts (including a TEXTMETRIC structure). The sizes returned in the OUTLINETEXTMETRIC structures are in logical units; they depend on the current mapping mode. Requirements Minimum supported clientWindows 2000 Professional Minimum supported serverWindows 2000 Server HeaderWingdi.h (include Windows.h) LibraryGdi32.lib DLLGdi32.dll Unicode and ANSI namesGetOutlineTextMetricsW (Unicode) and GetOutlineTextMetricsA (ANSI) See Also Fonts and Text Overview Font and Text Functions GetTextMetrics OUTLINETEXTMETRIC TEXTMETRIC Send comments about this topic to Microsoft Build date: 7/11/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/dd144906(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。