diff options
author | 2013-10-30 15:07:03 +0000 | |
---|---|---|
committer | 2013-10-30 15:07:03 +0000 | |
commit | 35fe7372b1b897a77578a220c334e1fb36d144e9 (patch) | |
tree | e70d67ac0528ce8a5cb22cec06cf8bd7d547b6c6 /src/core/SkTypeface.cpp | |
parent | b08c707847be4b0c94adf592912b4e7073f71ecb (diff) |
prototype for kerning api
BUG=
R=bungeman@google.com
Review URL: https://codereview.chromium.org/29363009
git-svn-id: http://skia.googlecode.com/svn/trunk@12018 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkTypeface.cpp')
-rw-r--r-- | src/core/SkTypeface.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/core/SkTypeface.cpp b/src/core/SkTypeface.cpp index 4da27388e7..77a564434c 100644 --- a/src/core/SkTypeface.cpp +++ b/src/core/SkTypeface.cpp @@ -233,6 +233,20 @@ int SkTypeface::getUnitsPerEm() const { return this->onGetUPEM(); } +bool SkTypeface::getKerningPairAdjustments(const uint16_t glyphs[], int count, + int32_t adjustments[]) const { + SkASSERT(count >= 0); + // check for the only legal way to pass a NULL.. everything is 0 + // in which case they just want to know if this face can possibly support + // kerning (true) or never (false). + if (NULL == glyphs || NULL == adjustments) { + SkASSERT(NULL == glyphs); + SkASSERT(0 == count); + SkASSERT(NULL == adjustments); + } + return this->onGetKerningPairAdjustments(glyphs, count, adjustments); +} + SkTypeface::LocalizedStrings* SkTypeface::createFamilyNameIterator() const { return this->onCreateFamilyNameIterator(); } @@ -254,3 +268,11 @@ SkAdvancedTypefaceMetrics* SkTypeface::getAdvancedTypefaceMetrics( SkTypeface* SkTypeface::refMatchingStyle(Style style) const { return this->onRefMatchingStyle(style); } + +/////////////////////////////////////////////////////////////////////////////// + +bool SkTypeface::onGetKerningPairAdjustments(const uint16_t glyphs[], int count, + int32_t adjustments[]) const { + return false; +} + |