diff options
author | 2013-08-01 20:18:41 +0000 | |
---|---|---|
committer | 2013-08-01 20:18:41 +0000 | |
commit | b10b51f64dbd1cf44571a1eedb412378702d8cd4 (patch) | |
tree | d961bd1e2de79deff8c50079dce6d3733fc72103 /src/core/SkTypeface.cpp | |
parent | 9a43c18740d3251b4d52703a0247719a0aef6474 (diff) |
Implement onGetTableTags and onGetTableData on Windows.
Implements these and removes default implementation, making the
declaration in SkTypeface pure virtual.
Review URL: https://codereview.chromium.org/20672004/
git-svn-id: http://skia.googlecode.com/svn/trunk@10495 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkTypeface.cpp')
-rw-r--r-- | src/core/SkTypeface.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/core/SkTypeface.cpp b/src/core/SkTypeface.cpp index 2d0471837e..34ff853c5c 100644 --- a/src/core/SkTypeface.cpp +++ b/src/core/SkTypeface.cpp @@ -8,7 +8,6 @@ #include "SkAdvancedTypefaceMetrics.h" #include "SkFontDescriptor.h" #include "SkFontHost.h" -#include "SkFontStream.h" #include "SkStream.h" #include "SkTypeface.h" @@ -224,18 +223,3 @@ int SkTypeface::onCharsToGlyphs(const void* chars, Encoding encoding, } return 0; } - -int SkTypeface::onGetTableTags(SkFontTableTag tags[]) const { - int ttcIndex; - SkAutoTUnref<SkStream> stream(this->openStream(&ttcIndex)); - return stream.get() ? SkFontStream::GetTableTags(stream, ttcIndex, tags) : 0; -} - -size_t SkTypeface::onGetTableData(SkFontTableTag tag, size_t offset, - size_t length, void* data) const { - int ttcIndex; - SkAutoTUnref<SkStream> stream(this->openStream(&ttcIndex)); - return stream.get() - ? SkFontStream::GetTableData(stream, ttcIndex, tag, offset, length, data) - : 0; -} |