Index: src/ports/SkFontHost_FreeType.cpp |
=================================================================== |
--- src/ports/SkFontHost_FreeType.cpp (revision 12776) |
+++ src/ports/SkFontHost_FreeType.cpp (working copy) |
@@ -602,6 +602,9 @@ |
info->fCapHeight = m_bbox.yMax - m_bbox.yMin; |
} else if (!got_m && got_x) { |
info->fCapHeight = x_bbox.yMax - x_bbox.yMin; |
+ } else { |
+ // Last resort, use the ascent. |
+ info->fCapHeight = info->fAscent; |
} |
} |