Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When a character from custom font is not found. #12975

Open
btbilal opened this issue Nov 16, 2023 · 2 comments
Open

When a character from custom font is not found. #12975

btbilal opened this issue Nov 16, 2023 · 2 comments

Comments

@btbilal
Copy link

btbilal commented Nov 16, 2023

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.

@rithik56
Copy link

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

@rithik56
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants