diff options
author | RadAd <adamgates84+github@gmail.com> | 2019-05-24 13:57:12 +1000 |
---|---|---|
committer | RadAd <adamgates84+github@gmail.com> | 2019-05-24 13:57:12 +1000 |
commit | f8c69335d47536ebd4c2e695f383ddbf5e897aeb (patch) | |
tree | acc07afd62dd993ae0296326986e457592218a89 /WinUtils.h | |
parent | fab29d0a0a85a06647ab3ad704ee2c6cb7db0edb (diff) | |
download | RadTerminal-f8c69335d47536ebd4c2e695f383ddbf5e897aeb.tar.gz RadTerminal-f8c69335d47536ebd4c2e695f383ddbf5e897aeb.zip |
support italic and underline fonts
Diffstat (limited to 'WinUtils.h')
-rw-r--r-- | WinUtils.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -28,9 +28,9 @@ inline RECT Rect(POINT p1, SIZE s2) return { p1.x, p1.y, p1.x + s2.cx, p1.y + s2.cy }; } -inline HFONT CreateFont(LPTSTR pFontFace, int iFontHeight, int cWeight) +inline HFONT CreateFont(LPTSTR pFontFace, int iFontHeight, int cWeight, BOOL bItalic, BOOL bUnderline) { - return CreateFont(iFontHeight, 0, 0, 0, cWeight, FALSE, FALSE, FALSE, ANSI_CHARSET, + return CreateFont(iFontHeight, 0, 0, 0, cWeight, bItalic, bUnderline, FALSE, ANSI_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH | FF_DONTCARE, pFontFace); } |