diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-04-17 18:01:31 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-04-17 18:01:31 +0000 |
commit | f11508d7f4aae52739b9c4f3bb2da2fd78fa23d9 (patch) | |
tree | af165643bc9e462be01766b2a3094d21a98dd0bb /src/core | |
parent | f3488ebaac4a553be5462e073c3cf5a6ce719151 (diff) |
expose font-table APIs to SkTypeface
Review URL: https://codereview.appspot.com/6050046
git-svn-id: http://skia.googlecode.com/svn/trunk@3707 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/SkTypeface.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/core/SkTypeface.cpp b/src/core/SkTypeface.cpp index e3b49e686d..798099cad0 100644 --- a/src/core/SkTypeface.cpp +++ b/src/core/SkTypeface.cpp @@ -101,3 +101,23 @@ SkAdvancedTypefaceMetrics* SkTypeface::getAdvancedTypefaceMetrics( glyphIDs, glyphIDsCount); } + +/////////////////////////////////////////////////////////////////////////////// + +int SkTypeface::countTables() const { + return SkFontHost::CountTables(fUniqueID); +} + +int SkTypeface::getTableTags(SkFontTableTag tags[]) const { + return SkFontHost::GetTableTags(fUniqueID, tags); +} + +size_t SkTypeface::getTableSize(SkFontTableTag tag) const { + return SkFontHost::GetTableSize(fUniqueID, tag); +} + +size_t SkTypeface::getTableData(SkFontTableTag tag, size_t offset, size_t length, + void* data) const { + return SkFontHost::GetTableData(fUniqueID, tag, offset, length, data); +} + |