[vlc-commits] freetype: fix GDI font weight
Francois Cartegnie
git at videolan.org
Mon Aug 24 17:39:08 CEST 2020
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Aug 20 15:00:41 2020 +0200| [688b9d6b1cb37b96d0cac19f7f57e0c686f04e52] | committer: Francois Cartegnie
freetype: fix GDI font weight
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=688b9d6b1cb37b96d0cac19f7f57e0c686f04e52
---
modules/text_renderer/freetype/fonts/win32.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/text_renderer/freetype/fonts/win32.c b/modules/text_renderer/freetype/fonts/win32.c
index 3073bf2789..522695544d 100644
--- a/modules/text_renderer/freetype/fonts/win32.c
+++ b/modules/text_renderer/freetype/fonts/win32.c
@@ -346,7 +346,7 @@ static int CALLBACK EnumFontCallback(const ENUMLOGFONTEX *lpelfe, const NEWTEXTM
vlc_family_t *p_family = ctx->p_family;
int i_flags = 0;
- if( lpelfe->elfLogFont.lfWeight == FW_BOLD )
+ if( lpelfe->elfLogFont.lfWeight >= FW_BOLD )
i_flags |= VLC_FONT_FLAG_BOLD;
if( lpelfe->elfLogFont.lfItalic != 0 )
i_flags |= VLC_FONT_FLAG_ITALIC;
More information about the vlc-commits
mailing list