diff options
author | caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-01-25 16:47:04 +0000 |
---|---|---|
committer | caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-01-25 16:47:04 +0000 |
commit | 76bd2540b55f31c8e72adb2fa72a88d7f4ba5374 (patch) | |
tree | fcc88523a0d62eeccf7e219f4a065005683480c9 | |
parent | 8887be06192f85ad3c7c11df04dc03428627c76b (diff) |
fix vertical bold text on mac
M src/ports/SkFontHost_mac_coretext.cpp
git-svn-id: http://skia.googlecode.com/svn/trunk@3086 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r-- | src/ports/SkFontHost_mac_coretext.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ports/SkFontHost_mac_coretext.cpp b/src/ports/SkFontHost_mac_coretext.cpp index 866e1968ed..3ba11a8c0a 100644 --- a/src/ports/SkFontHost_mac_coretext.cpp +++ b/src/ports/SkFontHost_mac_coretext.cpp @@ -1286,6 +1286,11 @@ void SkScalerContext_Mac::generatePath(const SkGlyph& glyph, SkPath* path) { // balance the call to CTFontCreateCopyWithAttributes CFRelease(font); } + if (fRec.fFlags & SkScalerContext::kVertical_Flag) { + SkIPoint offset; + getVerticalOffset(cgGlyph, &offset); + path->offset(SkIntToScalar(offset.fX), SkIntToScalar(offset.fY)); + } } void SkScalerContext_Mac::generateFontMetrics(SkPaint::FontMetrics* mx, |