Bug 1201874 - create core text font with correct size,r?lsalzman draft
authorpeter chang <pchang@mozilla.com>
Tue, 24 May 2016 10:48:07 +0800
changeset 369977 658cc1dba253007df686ac7092d3578147a9d9d8
parent 369976 62f45e70eccd730a1de343470328a4b988bac812
child 521665 80ff7d43588b97d18b5c350e8c5d96b59ed1cdd6
push id18966
push userbmo:howareyou322@gmail.com
push dateTue, 24 May 2016 02:54:07 +0000
reviewerslsalzman
bugs1201874
milestone49.0a1
Bug 1201874 - create core text font with correct size,r?lsalzman MozReview-Commit-ID: GXH7ExjMI2m
gfx/cairo/cairo/src/cairo-quartz-font.c
--- a/gfx/cairo/cairo/src/cairo-quartz-font.c
+++ b/gfx/cairo/cairo/src/cairo-quartz-font.c
@@ -565,17 +565,17 @@ static cairo_int_status_t
 
     /* scale(1,-1) * font->base.scale */
     textMatrix = CGAffineTransformMake (font->base.scale.xx,
 					font->base.scale.yx,
 					-font->base.scale.xy,
 					-font->base.scale.yy,
 					0, 0);
 
-    ctFont = CTFontCreateWithGraphicsFont (font_face->cgFont, 0.0, NULL, NULL);
+    ctFont = CTFontCreateWithGraphicsFont (font_face->cgFont, 1.0, NULL, NULL);
     glyphPath = CTFontCreatePathForGlyph (ctFont, glyph, &textMatrix);
     CFRelease (ctFont);
     if (!glyphPath)
 	return CAIRO_INT_STATUS_UNSUPPORTED;
 
     path = _cairo_path_fixed_create ();
     if (!path) {
 	CGPathRelease (glyphPath);