rmkit icon indicating copy to clipboard operation
rmkit copied to clipboard

[rmkit] Add font fallback support to rmkit.h

Open granolaonicecream opened this issue 2 years ago • 2 comments

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.

granolaonicecream avatar Aug 27 '23 19:08 granolaonicecream

great idea, thank you!

raisjn avatar Aug 30 '23 04:08 raisjn

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

raisjn avatar Dec 20 '23 18:12 raisjn