-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Glyph bitmap overflow, disappearing labels on rotation #1681
Comments
Although I wouldn’t discount the possibility that it has something to do with the corrupted glyph in that POI label in the center of the map. |
I was also seeing the issue on Vietnamese labels (Latin with diacritics). But after restarting the app, I’m no longer seeing either the glyph corruption (completely misdrawn and flashing on every redraw) or the labels disappearing – the labels flip as expected. So it probably is related to the glyph corruption. |
When I do return to the problematic POI, I get lots of this in the console:
|
We've seen this with Chinese labels before (can't find the issue though), but we're essentially overstuffing the glyph atlas, because so many unique glyphs are needed The sparse placement and long tail of less common glyphs across the Unicode range makes this a pretty difficult problem. Another possible compounding issue is that we're storing glyphs in the atlas by fontstack and codepoint, so there may be multiple copies of a glyph stored if multiple fontstacks share a common fallback. I believe |
We have several issues about sprite atlas overflow, but maybe not one about glyph atlas overflow specifically. However there is #1444, which is likely compounding the issue. |
In case it wasn’t clear from the screenshots I took in #1681 (comment), this is what glyph overflow currently looks like: It’s easy to reproduce this issue by panning around a city such as Tapei, in which many street names and POIs have Chinese names but not English names. mapbox/mapbox-gl-js#141 is the equivalent bug in Mapbox GL JS. |
Haven't noticed it again @1ec5. Let's close for now, we can reopen if this becomes an issue in the future |
With #1666 in iOS 8.3 on an iPhone 6, when rotating the map, I’m seeing CJK labels disappear instead of flipping vertically:
Doesn’t reproduce in mapbox-gl-js (Emerald style) in Firefox 40.0a2 (2015-06-02).
/cc @ansis
The text was updated successfully, but these errors were encountered: