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

add fallback character when a character is missing from custom font #13070

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

rithik56
Copy link

@rithik56 rithik56 commented Feb 1, 2024

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 rithik56 requested a review from a team as a code owner February 1, 2024 06:39
@rithik56 rithik56 marked this pull request as draft February 2, 2024 20:27
@rithik56 rithik56 marked this pull request as ready for review February 6, 2024 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant