[core] Don't overwrite locally renderable glyphs with remote glyphs
This commit is contained in:
committed by
Mikhail Pozdnyakov
parent
00d4f812ac
commit
0e3a7416e5
@@ -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)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user