diff --git a/src/hb-uniscribe-shape.cc b/src/hb-uniscribe-shape.cc index 3b1a1786b..0934d5db5 100644 --- a/src/hb-uniscribe-shape.cc +++ b/src/hb-uniscribe-shape.cc @@ -65,7 +65,7 @@ populate_log_font (LOGFONTW *lf, { memset (lf, 0, sizeof (*lf)); int dpi = GetDeviceCaps (hdc, LOGPIXELSY); - lf->lfHeight = MulDiv (font->x_scale, dpi, 72); + lf->lfHeight = -font->y_scale; hb_blob_t *blob = Sanitizer::sanitize (hb_face_reference_table (font->face, HB_TAG ('n','a','m','e'))); const name *name_table = Sanitizer::lock_instance (blob);