|
uLib
User mode C/C++ extended API library for Win32 programmers.
|
Additional font APIs.
Functions | |
| HFONT WINAPI | CreateFontEx (CSTR Typeface, int Points, int Weight, DWORD Charset=ANSI_CHARSET, DWORD Quality=ANTIALIASED_QUALITY) |
| int WINAPI | FontHeight (HDC hdc, int Points) |
| int WINAPI | ScreenFontHeight (WORD Points) |
| HFONT WINAPI | GetWndFont (HWND hWnd, OPTOUT LOGFONT *pLogFont) |
| HFONT WINAPI CreateFontEx | ( | CSTR | Typeface, |
| int | Points, | ||
| int | Weight, | ||
| DWORD | Charset = ANSI_CHARSET, |
||
| DWORD | Quality = ANTIALIASED_QUALITY |
||
| ) |
An easier way to create a font instance, specifying size in Points.
See also [MSDN] CreateFont() and LOGFONT for parameter details.
Definition at line 30 of file GdiUtil.cpp.
| int WINAPI FontHeight | ( | HDC | hdc, |
| int | Points | ||
| ) |
Compute font height, lfHeight, from size given in Points.
If hdc is NULL, compute for the screen, else for the given DC.
See also [MSDN] LOGFONT for lfHeight details.
Definition at line 43 of file GdiUtil.cpp.
| int WINAPI ScreenFontHeight | ( | WORD | Points | ) |
Calculate lfHeight for the screen.
Definition at line 52 of file GdiUtil.cpp.
| HFONT WINAPI GetWndFont | ( | HWND | hWnd, |
| OPTOUT LOGFONT * | pLogFont | ||
| ) |
Get the current font for hWnd..