Skip to content

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

Open

Description

@granolaonicecream

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.

Activity

  1. raisjn commented on Aug 30, 2023

    @raisjn
    Member

    great idea, thank you!

  2. raisjn commented on Dec 20, 2023

    @raisjn
    Member

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

  3. changed the title [-]Add font fallback support to rmkit.h[/-] [+][rmkit] Add font fallback support to rmkit.h[/+] on Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions