mapbox-gl-js icon indicating copy to clipboard operation
mapbox-gl-js copied to clipboard

When a character from custom font is not found.

Open btbilal opened this issue 2 years ago • 2 comments

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.

btbilal avatar Nov 16 '23 08:11 btbilal

@btbilal can you please specify which custom font you are using and the style object that you used ?

rithik56 avatar Jan 31 '24 05:01 rithik56

@stepankuzmin could you please review the PR addressing this issue ?

rithik56 avatar Feb 13 '24 04:02 rithik56