mirror of
https://github.com/Dasemu/NavFrame.git
synced 2026-11-26 15:26:05 +00:00
fix: keep TFT snapshots alive when labels need unbundled glyph ranges
MapLibre's MapSnapshotter aborts the whole still image on any glyph load
error. The offline style only bundled Noto Sans ranges 0-2047, while the
Asturias archive labels use U+1E36/U+1E37 (Asturian Ḷḷ) and typographic
quotes/dashes, so the TFT failed with SDK/STYLE_READY UNKNOWN/UNKNOWN
("Could not read asset") whenever such a label was in view, while the
phone MapView kept working.
Bundle the unmodified demotiles ranges 7680-7935 and 8192-8447, add an
empty placeholder for every other BMP range, report missing assets as
NOT_FOUND, and release 0.13.7.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014YKH4z66ZCe2wK4GvgRg7g
This commit is contained in:
259 files changed
+846
-9
No files matched your search
@@ -24,7 +24,7 @@ internal fun mapErrorDetail(message: String?, errorClass: String = "SDK_CALLBACK
|
||||
val reason = when {
|
||||
text.contains("dns") || text.contains("resolve") -> MapFailureReason.DNS
|
||||
status == 403 || text.contains("forbidden") -> MapFailureReason.FORBIDDEN
|
||||
status == 404 || text.contains("not found") -> MapFailureReason.NOT_FOUND
|
||||
status == 404 || text.contains("not found") || text.contains("could not read asset") -> MapFailureReason.NOT_FOUND
|
||||
text.contains("context lost") -> MapFailureReason.CONTEXT_LOST
|
||||
text.contains("egl") -> MapFailureReason.EGL
|
||||
text.contains("memory") -> MapFailureReason.MEMORY
|
||||
|
||||
Reference in new issue
Block a user