pass font size explicitly for leopard
http://codereview.appspot.com/5401043/
M src/ports/SkFontHost_mac_coretext.cpp
git-svn-id: http://skia.googlecode.com/svn/trunk@2700 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/ports/SkFontHost_mac_coretext.cpp b/src/ports/SkFontHost_mac_coretext.cpp
index 3c39182..d4c5b55 100644
--- a/src/ports/SkFontHost_mac_coretext.cpp
+++ b/src/ports/SkFontHost_mac_coretext.cpp
@@ -625,9 +625,9 @@
CGFloat unitFontSize;
if (isLeopard()) {
// passing 1 for pointSize to Leopard sets the font size to 1 pt.
- // pass 0 to use the CoreText size
+ // pass the CoreText size explicitly
transform = MatrixToCGAffineTransform(fUnitMatrix);
- unitFontSize = 0;
+ unitFontSize = SkScalarToFloat(fRec.fTextSize);
} else {
// since our matrix includes everything, we pass 1 for pointSize
transform = fTransform;