Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
Dont overwrite locally renderable glyphs with remote glyphs
Browse files Browse the repository at this point in the history
  • Loading branch information
Asheem Mamoowala committed Aug 19, 2019
1 parent 98dbed2 commit 90ec5d3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/mbgl/text/glyph_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,10 @@ void GlyphManager::processResponse(const Response& res, const FontStack& fontSta
}

for (auto& glyph : glyphs) {
entry.glyphs.erase(glyph.id);
entry.glyphs.emplace(glyph.id, makeMutable<Glyph>(std::move(glyph)));
if (!localGlyphRasterizer->canRasterizeGlyph(fontStack, glyph.id)) {
entry.glyphs.erase(glyph.id);
entry.glyphs.emplace(glyph.id, makeMutable<Glyph>(std::move(glyph)));
}
}
}

Expand Down

0 comments on commit 90ec5d3

Please sign in to comment.