Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(549)

Unified Diff: include/core/SkPaint.h

Issue 101333004: Supports the cap height for FreeType even when TT OS2 version is 1. (Closed) Base URL: https://chromium.googlesource.com/external/skia/src.git@master
Patch Set: Changed the approach according to the review comment. Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/ports/SkFontHost_FreeType.cpp » ('j') | src/ports/SkFontHost_FreeType.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkPaint.h
diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h
index 1244795819063cee64fb86f042bacfef9fa76843..7ccadb0cd3bd5a2121cff7e7dd52276be2715290 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 (will be => 0)
bungeman-skia 2013/12/12 17:12:35 add or '0' if cannot be determined here. While yo
Yuki 2013/12/13 09:32:14 Done.
};
/** Return the recommend spacing between lines (which will be
« no previous file with comments | « no previous file | src/ports/SkFontHost_FreeType.cpp » ('j') | src/ports/SkFontHost_FreeType.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698