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

add fallback character when a character is missing from custom font

Open rithik56 opened this issue 2 years ago • 0 comments

This closes the good first issue #12975

Added an option to show the fallback character when a character from custom font is missing.

Added a new a field in GlyphManager class, enableFallbackGlyph which if set to true, will replace the missing characters with ? of that font stack

If we have enabled this option, then if no character of that font stack is present between unicode id 0 and 255, then we would load 0-255.pbf file of that font stack so that we retrieve the glyph of ? of that fontstack and show that as fallback if any character is missing

rithik56 avatar Feb 01 '24 06:02 rithik56