diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-26 23:21:45 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-26 23:21:45 +0000 |
commit | 653b2a10f65a1c1bd42f22998bc9ed3a0268b88f (patch) | |
tree | d6daa813c17dcaa287771883348f770d77ce687e /skia/include | |
parent | 9b98c97f70bdbd19360c52af0c68672c3789446f (diff) | |
download | chromium_src-653b2a10f65a1c1bd42f22998bc9ed3a0268b88f.zip chromium_src-653b2a10f65a1c1bd42f22998bc9ed3a0268b88f.tar.gz chromium_src-653b2a10f65a1c1bd42f22998bc9ed3a0268b88f.tar.bz2 |
Linux: Match the tmMaxCharWidth of Windows exactly.
The metric used is totally wrong, it's much larger than the largest advance of
any glyph in the font. However, it's wrong in exactly the same way as Windows
is.
Review URL: http://codereview.chromium.org/12505
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6073 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/include')
-rw-r--r-- | skia/include/SkPaint.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/skia/include/SkPaint.h b/skia/include/SkPaint.h index 921245b..9529dd0 100644 --- a/skia/include/SkPaint.h +++ b/skia/include/SkPaint.h @@ -588,6 +588,10 @@ public: SkScalar fLeading; //!< The recommended distance to add between lines of text (will be >= 0) SkScalar fHeight; //!< the vertical distance between two consecutive baselines (>= 0) SkScalar fAvgCharWidth; //!< the average charactor width (>= 0) + SkScalar fXRange; //!< This is the maximum range of X bounding box points + // in units of em. It's used to calculate a value which + // matches Windows's GetTextMetrics tmMaxCharWidth + // member exactly. // VDMX values are exact ascent and descent values for scalable fonts at // a certain pixel size. |