From 3fd2b5bece28c81e3e379352f09eee39d19ac372 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 6 Aug 2011 22:59:54 -0400 Subject: [PATCH] [uniscribe] Use font size directly --- src/hb-uniscribe-shape.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);