The GetFontData function retrieves font metric data for a TrueType font.
DWORD GetFontData(
HDC hdc, |
// handle of device context |
DWORD dwTable, |
// metric table to query |
DWORD dwOffset, |
// offset into table being queried |
LPVOID lpvBuffer, |
// address of buffer for returned data |
DWORD cbData |
// length of data to query |
); |
If the function succeeds, the return value is the number of bytes returned.
If the function fails, the return value is GDI_ERROR. To get extended error information, call GetLastError.
An application can sometimes use the GetFontData function to save a TrueType font with a document. To do this, the application determines whether the font can be embedded by checking the otmfsType member of the OUTLINETEXTMETRIC structure. If bit 1 of otmfsType is set, embedding is not permitted for the font. If bit 1 is clear, the font can be embedded. If bit 2 is set, the embedding is read-only. If embedding is permitted, the application can retrieve the entire font file, specifying zero for the dwTable, dwOffset, and cbData parameters.
If an application attempts to use this function to retrieve information for a non-TrueType font, an error occurs.
GetTextMetrics, OUTLINETEXTMETRIC
file: /Techref/os/win/api/win32/func/src/f32_7.htm, 4KB, , updated: 2000/4/7 12:19, local time: 2024/9/2 15:20,
3.147.51.80:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://piclist.com/techref/os/win/api/win32/func/src/f32_7.htm"> GetFontData</A> |
Did you find what you needed? |
![]() o List host: MIT, Site host massmind.org, Top posters @none found - Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr. |
Welcome to piclist.com! |
.