From f8c69335d47536ebd4c2e695f383ddbf5e897aeb Mon Sep 17 00:00:00 2001 From: RadAd Date: Fri, 24 May 2019 13:57:12 +1000 Subject: support italic and underline fonts --- WinUtils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'WinUtils.h') diff --git a/WinUtils.h b/WinUtils.h index a2b630b..4498099 100644 --- a/WinUtils.h +++ b/WinUtils.h @@ -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); } -- cgit v1.2.3