Bug 1201874 - create core text font with correct size,r=lsalzman
authorpeter chang <pchang@mozilla.com>
Tue, 24 May 2016 10:48:07 +0800
changeset 337966 0edb406418261a3b078bab4f108a4948a13dd46f
parent 337965 6fed93907a39069b9db866890dd49ccc7e09a176
child 337967 7932129b6e5c819a8bee07f7c21260296a988d56
push id6249
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 13:59:36 +0000
treeherdermozilla-beta@bad9d4f5bf7e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslsalzman
bugs1201874
milestone49.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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);