summaryrefslogtreecommitdiffstats
path: root/skia/include/SkPaint.h
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-21 23:45:49 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-21 23:45:49 +0000
commit0dcb16bc3f6baf94d9b87a8685bc8309127018ad (patch)
treea9d497382b67ecc987327d62dad2c707db6bd5d5 /skia/include/SkPaint.h
parent17e09ae6e699f59553f8e70c0949f7302058bde5 (diff)
downloadchromium_src-0dcb16bc3f6baf94d9b87a8685bc8309127018ad.zip
chromium_src-0dcb16bc3f6baf94d9b87a8685bc8309127018ad.tar.gz
chromium_src-0dcb16bc3f6baf94d9b87a8685bc8309127018ad.tar.bz2
Parse VDMX tables for font metrics in Skia.
Although you cannot see the blood, sweat and tears on this changelist, know that they are there. We still aren't quite perfect, but it's better. Review URL: http://codereview.chromium.org/11344 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5868 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/include/SkPaint.h')
-rw-r--r--skia/include/SkPaint.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/skia/include/SkPaint.h b/skia/include/SkPaint.h
index 73e3dbd..06009cb 100644
--- a/skia/include/SkPaint.h
+++ b/skia/include/SkPaint.h
@@ -587,6 +587,12 @@ 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 fHeight; //!< the vertical distance between two consecutive baselines (>= 0)
+
+ // VDMX values are exact ascent and descent values for scalable fonts at
+ // a certain pixel size.
+ bool fVDMXMetricsValid; //!< If true, the following members are valid
+ unsigned fVDMXAscent;
+ unsigned fVDMXDescent;
};
/** Return the recommend spacing between lines (which will be