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

[rmkit] Add font fallback support to rmkit.h #204

Open
granolaonicecream opened this issue Aug 27, 2023 · 2 comments
Open

[rmkit] Add font fallback support to rmkit.h #204

granolaonicecream opened this issue Aug 27, 2023 · 2 comments

Comments

@granolaonicecream
Copy link

Feature Request

Font fallback is a strategy of selecting the font used to render a glyph. This is typically accomplished by defining an ordered list of fonts, and iterating through them until a supported font is found for each glyph.

Purpose

Current font formats like TTF cannot represent enough total symbols to cover all languages. This improvement would allow applications to display text from a wider variety of languages (e.g. CJK languages) simultaneously.

Approach

Currently, rmkit appears to support a single configurable font.

The backing stb library does advertise the ability to check a font for support of a codepoint.

@raisjn
Copy link
Member

raisjn commented Aug 30, 2023

great idea, thank you!

@raisjn
Copy link
Member

raisjn commented Dec 20, 2023

i'm coming back to this task and thinking about it. would using a comma separated list of fonts work?

@raisjn raisjn changed the title Add font fallback support to rmkit.h [rmkit] Add font fallback support to rmkit.h Dec 20, 2023
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

No branches or pull requests

2 participants