diff options
Diffstat (limited to 'src/fonts/SkTestScalerContext.cpp')
-rw-r--r-- | src/fonts/SkTestScalerContext.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/fonts/SkTestScalerContext.cpp b/src/fonts/SkTestScalerContext.cpp index ec53c54fa2..db726376f1 100644 --- a/src/fonts/SkTestScalerContext.cpp +++ b/src/fonts/SkTestScalerContext.cpp @@ -146,8 +146,12 @@ void SkTestTypeface::onFilterRec(SkScalerContextRec* rec) const { rec->setHinting(SkPaint::kNo_Hinting); } -std::unique_ptr<SkAdvancedTypefaceMetrics> SkTestTypeface::onGetAdvancedMetrics() const { // pdf only - std::unique_ptr<SkAdvancedTypefaceMetrics> info(new SkAdvancedTypefaceMetrics); +SkAdvancedTypefaceMetrics* SkTestTypeface::onGetAdvancedTypefaceMetrics( + PerGlyphInfo , + const uint32_t* glyphIDs, + uint32_t glyphIDsCount) const { +// pdf only + SkAdvancedTypefaceMetrics* info = new SkAdvancedTypefaceMetrics; info->fFontName.set(fTestFont->fName); int glyphCount = this->onCountGlyphs(); |