[uniscribe] Use font size directly
authorBehdad Esfahbod <behdad@behdad.org>
Sun, 7 Aug 2011 02:59:54 +0000 (22:59 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Sun, 7 Aug 2011 02:59:54 +0000 (22:59 -0400)
src/hb-uniscribe-shape.cc

index 3b1a178..0934d5d 100644 (file)
@@ -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<name>::sanitize (hb_face_reference_table (font->face, HB_TAG ('n','a','m','e')));
   const name *name_table = Sanitizer<name>::lock_instance (blob);