diff options
Diffstat (limited to 'src/ports/SkFontMgr_fontconfig.cpp')
-rw-r--r-- | src/ports/SkFontMgr_fontconfig.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/ports/SkFontMgr_fontconfig.cpp b/src/ports/SkFontMgr_fontconfig.cpp index be4b17dd12..f27ad40da6 100644 --- a/src/ports/SkFontMgr_fontconfig.cpp +++ b/src/ports/SkFontMgr_fontconfig.cpp @@ -489,9 +489,12 @@ public: this->INHERITED::onFilterRec(rec); } - std::unique_ptr<SkAdvancedTypefaceMetrics> onGetAdvancedMetrics() const override { - std::unique_ptr<SkAdvancedTypefaceMetrics> info = - this->INHERITED::onGetAdvancedMetrics(); + SkAdvancedTypefaceMetrics* onGetAdvancedTypefaceMetrics(PerGlyphInfo perGlyphInfo, + const uint32_t* glyphIDs, + uint32_t glyphIDsCount) const override + { + SkAdvancedTypefaceMetrics* info = + this->INHERITED::onGetAdvancedTypefaceMetrics(perGlyphInfo, glyphIDs, glyphIDsCount); // Simulated fonts shouldn't be considered to be of the type of their data. if (get_matrix(fPattern, FC_MATRIX) || get_bool(fPattern, FC_EMBOLDEN)) { |