[core] Don't overwrite locally renderable glyphs with remote glyphs

This commit is contained in:
Asheem Mamoowala
2019-08-19 00:12:50 -07:00
committed by Mikhail Pozdnyakov
parent 00d4f812ac
commit 0e3a7416e5

View File

@@ -99,8 +99,10 @@ void GlyphManager::processResponse(const Response& res, const FontStack& fontSta
for (auto& glyph : glyphs) {
auto id = glyph.id;
entry.glyphs.erase(id);
entry.glyphs.emplace(id, makeMutable<Glyph>(std::move(glyph)));
if (!localGlyphRasterizer->canRasterizeGlyph(fontStack, id)) {
entry.glyphs.erase(id);
entry.glyphs.emplace(id, makeMutable<Glyph>(std::move(glyph)));
}
}
}