Remove old default implementation of SkTypeface::onGetUPEM.
In order to introduce onGetUPEM there was written a generic but slow version in SkTypeface.cpp. All ports now implement this method and the declaration is now marked as pure virtual. git-svn-id: http://skia.googlecode.com/svn/trunk@10442 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
30ddd615c4
commit
2faef552ff
@ -225,20 +225,6 @@ int SkTypeface::onCharsToGlyphs(const void* chars, Encoding encoding,
|
||||
return 0;
|
||||
}
|
||||
|
||||
int SkTypeface::onGetUPEM() const {
|
||||
int upem = 0;
|
||||
|
||||
SkAdvancedTypefaceMetrics* metrics;
|
||||
metrics = this->getAdvancedTypefaceMetrics(
|
||||
SkAdvancedTypefaceMetrics::kNo_PerGlyphInfo,
|
||||
NULL, 0);
|
||||
if (metrics) {
|
||||
upem = metrics->fEmSize;
|
||||
metrics->unref();
|
||||
}
|
||||
return upem;
|
||||
}
|
||||
|
||||
int SkTypeface::onGetTableTags(SkFontTableTag tags[]) const {
|
||||
int ttcIndex;
|
||||
SkAutoTUnref<SkStream> stream(this->openStream(&ttcIndex));
|
||||
|
Loading…
Reference in New Issue
Block a user