diff options
author | mike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-03-03 01:15:48 +0000 |
---|---|---|
committer | mike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-03-03 01:15:48 +0000 |
commit | dc09f07671145b21c83de7153c9c9b950c871f1a (patch) | |
tree | 6ebcafc9cd0e55462de9e9067d368a0799d2a12e /src/core | |
parent | b9ba1eadc839fb346a5bcf5f7a38b775e1069586 (diff) |
move some of the impl in fonthost into typeface virtuals
git-svn-id: http://skia.googlecode.com/svn/trunk@7944 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/SkTypeface.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/core/SkTypeface.cpp b/src/core/SkTypeface.cpp index c30e5a9f6d..e7004502bd 100644 --- a/src/core/SkTypeface.cpp +++ b/src/core/SkTypeface.cpp @@ -134,3 +134,21 @@ int SkTypeface::getUnitsPerEm() const { #endif return upem; } + +/////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// + +#include "SkFontDescriptor.h" + +int SkTypeface::onGetUPEM() const { return 0; } +int SkTypeface::onGetTableTags(SkFontTableTag tags[]) const { return 0; } +size_t SkTypeface::onGetTableData(SkFontTableTag, size_t offset, + size_t length, void* data) const { return 0; } +SkScalerContext* SkTypeface::onCreateScalerContext(const SkDescriptor*) const { + return NULL; +} +void SkTypeface::onFilterRec(SkScalerContextRec*) const {} +void SkTypeface::onGetFontDescriptor(SkFontDescriptor* desc) const { + desc->setStyle(this->style()); +} + |