From: Behdad Esfahbod Date: Sun, 7 Aug 2011 02:59:54 +0000 (-0400) Subject: [uniscribe] Use font size directly X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3fd2b5bece28c81e3e379352f09eee39d19ac372;p=platform%2Fupstream%2FlibHarfBuzzSharp.git [uniscribe] Use font size directly --- diff --git a/src/hb-uniscribe-shape.cc b/src/hb-uniscribe-shape.cc index 3b1a178..0934d5d 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);