diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2023-03-02 21:31:33 +0000 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2023-03-02 21:31:33 +0000 |
commit | 1f9004b3d0883cd8834b250c584aec31dc8ffadf (patch) | |
tree | 150d11754ad68f15f1986dab51206f52d98818a6 | |
parent | 79c6beee90962c39cbddfdb3d05c19219b8bc383 (diff) | |
parent | aa0aca3c658f47f68cc2b60130634ef32271b021 (diff) |
Merge branch 'issue-3-win32-font-scale' into 'master'
win32 font is very small if the lfHeight of HFONT is exactly -size
Closes #3
See merge request cairo/cairo!466
-rw-r--r-- | src/win32/cairo-win32-font.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/win32/cairo-win32-font.c b/src/win32/cairo-win32-font.c index fd9461363..a561e74a4 100644 --- a/src/win32/cairo-win32-font.c +++ b/src/win32/cairo-win32-font.c @@ -1798,7 +1798,7 @@ _cairo_win32_font_face_scaled_font_create (void *abstract_face, if (font_face->hfont) { /* Check whether it's OK to go ahead and use the font-face's HFONT. */ if (_is_scale (ctm, 1.) && - _is_scale (font_matrix, -font_face->logfont.lfHeight)) { + _is_scale (font_matrix, -font_face->logfont.lfHeight * WIN32_FONT_LOGICAL_SCALE)) { hfont = font_face->hfont; } } |