Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Multiple glyph ranges are not supported by a single font #69

@totalgee

Description

@totalgee

If you try to specify multiple glyph ranges, you only get the first one.

For example:

    // In setup():
    auto robo = getAssetPath("Roboto-Medium.ttf");
    auto const firstArrow = L'';
    auto const lastArrow = L'';
    auto options = ui::Options()
        .fonts({ { robo, 16.0f } }, false)
        .fontGlyphRanges(robo.stem().string(), { 0x20, 0xff, firstArrow, lastArrow, 0 });

    // ... more setup of options ...

    ui::initialize(options);

Then, later in the GUI drawing code, try to draw using a mixture of characters from both glyph ranges (here, the arrows will show the "missing" symbol). For example:

    if (ui::MenuItem(u8"Move up (shift-↑)")) {
        // blah
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions