diff options
-rw-r--r-- | src/mbgl/text/glyph_manager.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mbgl/text/glyph_manager.cpp b/src/mbgl/text/glyph_manager.cpp index 990e8be945..35ea1031d5 100644 --- a/src/mbgl/text/glyph_manager.cpp +++ b/src/mbgl/text/glyph_manager.cpp @@ -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))); + } } } |