mapbox/mapbox-gl-js

When a character from custom font is not found.

Open

#12.975 geöffnet am 16. Nov. 2023

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (2.203 Forks)batch import
feature :green_apple:good first issue

Repository-Metriken

Stars
 (10.532 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

mapbox-gl-js/v2.1.1:

Question

I have set glyphs to my custom font url but there scenarios which are breaking the font when some character is not found. A character is not found and then mapbox tries to request from a different range from 0-255 -> some other range but that range does not exist in my font as i only have 0-255 range. How can i add a fallback that either it finds the and displays or it shows a ? instead of the characters which are not found.

Due to this my map style is breaking.

Contributor Guide