| Index: src/core/SkTypeface.cpp
|
| diff --git a/src/core/SkTypeface.cpp b/src/core/SkTypeface.cpp
|
| index ba58c4c4244741495124374398ac0a4ad69847cf..dcdd5e29f3cce3f76413f298bc91cb1da15524f0 100644
|
| --- a/src/core/SkTypeface.cpp
|
| +++ b/src/core/SkTypeface.cpp
|
| @@ -172,6 +172,24 @@ SkStream* SkTypeface::openStream(int* ttcIndex) const {
|
| return this->onOpenStream(ttcIndex);
|
| }
|
|
|
| +int SkTypeface::charsToGlyphs(const void* chars, Encoding encoding,
|
| + uint16_t glyphs[], int glyphCount) const {
|
| + if (glyphCount <= 0) {
|
| + return 0;
|
| + }
|
| + if (NULL == chars || (unsigned)encoding > kUTF32_Encoding) {
|
| + if (glyphs) {
|
| + sk_bzero(glyphs, glyphCount * sizeof(glyphs[0]));
|
| + }
|
| + return 0;
|
| + }
|
| + return this->onCharsToGlyphs(chars, encoding, glyphs, glyphCount);
|
| +}
|
| +
|
| +int SkTypeface::countGlyphs() const {
|
| + return this->onCountGlyphs();
|
| +}
|
| +
|
| int SkTypeface::getUnitsPerEm() const {
|
| // should we try to cache this in the base-class?
|
| return this->onGetUPEM();
|
| @@ -187,6 +205,20 @@ SkAdvancedTypefaceMetrics* SkTypeface::getAdvancedTypefaceMetrics(
|
| ///////////////////////////////////////////////////////////////////////////////
|
| ///////////////////////////////////////////////////////////////////////////////
|
|
|
| +int SkTypeface::onCharsToGlyphs(const void* chars, Encoding encoding,
|
| + uint16_t glyphs[], int glyphCount) const {
|
| + SkDebugf("onCharsToGlyphs unimplemented\n");
|
| + if (glyphs && glyphCount > 0) {
|
| + sk_bzero(glyphs, glyphCount * sizeof(glyphs[0]));
|
| + }
|
| + return 0;
|
| +}
|
| +
|
| +int SkTypeface::onCountGlyphs() const {
|
| + SkDebugf("onCountGlyphs unimplemented\n");
|
| + return 0;
|
| +}
|
| +
|
| int SkTypeface::onGetUPEM() const {
|
| int upem = 0;
|
|
|
|
|