Skip to content

win32 font is very small if the lfHeight of HFONT is exactly -size

cairo_win32_font_face_create_for_hfont is reusing the HFONT object passed by an argument if possible to create a scaled font. However, the condition was wrong. It checked the font matrix scale factor is -lfHeight. But it should be -lfHeight * WIN32_FONT_LOGICAL_SCALE.

Fixes #3 (closed)

Merge request reports