Skip to content

Conversation

@mcendu
Copy link
Contributor

@mcendu mcendu commented Nov 25, 2025

This commit adds a set of APIs for iterating over the set of codepoints for which the font provides a glyph. This implementation calls FreeType directly to iterate over the charmap of font->face.

This is intended to be used in for loops as follows:

for (Uint32 ch = TTF_GetFirstFontChar(font); ch != UINT32_MAX;
     ch = TTF_GetNextFontChar(font)) {
    /* do something... */
}

Fixes #598.

This commit adds a set of APIs for iterating over the set of codepoints
for which the font provides a glyph. This implementation calls FreeType
directly to iterate over the charmap of font->face.

This is intended to be used in for loops as follows:

    for (Uint32 ch = TTF_GetFirstFontChar(font); ch != UINT32_MAX;
         ch = TTF_GetNextFontChar(font)) {
        /* do something... */
    }
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.

Way to list all codepoints available

1 participant