diff options
author | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-12-16 17:02:39 +0000 |
---|---|---|
committer | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-12-16 17:02:39 +0000 |
commit | cbe1b54c30b9a1061577c91e0b914dbe9acdc563 (patch) | |
tree | 2fc2e5dbabdca3e3778b926382ac29fc8e3dba90 /include | |
parent | 7d7f31433b627e62f518e9186d3f2d9bd44662e0 (diff) |
Supports the cap height for FreeType even when TT OS2 version is 1.
BUG=http://crbug.com/318645
R=bungeman@google.com, reed@google.com
Review URL: https://codereview.chromium.org/101333004
git-svn-id: http://skia.googlecode.com/svn/trunk@12689 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkPaint.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h index 1244795819..4930842a2e 100644 --- a/include/core/SkPaint.h +++ b/include/core/SkPaint.h @@ -740,7 +740,8 @@ public: SkScalar fMaxCharWidth; //!< the max charactor width (>= 0) SkScalar fXMin; //!< The minimum bounding box x value for all glyphs SkScalar fXMax; //!< The maximum bounding box x value for all glyphs - SkScalar fXHeight; //!< the height of an 'x' in px, or 0 if no 'x' in face + SkScalar fXHeight; //!< The height of an 'x' in px, or 0 if no 'x' in face + SkScalar fCapHeight; //!< The cap height (> 0), or 0 if cannot be determined. }; /** Return the recommend spacing between lines (which will be |