diff options
author | 2013-06-21 05:31:38 +0000 | |
---|---|---|
committer | 2013-06-21 05:31:38 +0000 | |
commit | e9d831957602e3fa46fc4b609ae6d2da46654915 (patch) | |
tree | 0ae833efa40840c0ece628070ae7939e4c6b2653 /include/core | |
parent | 45a30714982e8b5b18539b2ad71f3aceab8ed075 (diff) |
Add maxCharWidth and a compile flag to use old metrics (needed by Blink).
Review URL: https://codereview.chromium.org/17502006
git-svn-id: http://skia.googlecode.com/svn/trunk@9712 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkPaint.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h index caa2030e6f..d390ce29f3 100644 --- a/include/core/SkPaint.h +++ b/include/core/SkPaint.h @@ -714,6 +714,7 @@ public: SkScalar fBottom; //!< The greatest distance below the baseline for any glyph (will be >= 0) SkScalar fLeading; //!< The recommended distance to add between lines of text (will be >= 0) SkScalar fAvgCharWidth; //!< the average charactor width (>= 0) + 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 |