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

ImGui font reloading makes fonts unreadable #479

Open
faesong opened this issue Nov 16, 2022 · 0 comments
Open

ImGui font reloading makes fonts unreadable #479

faesong opened this issue Nov 16, 2022 · 0 comments

Comments

@faesong
Copy link

faesong commented Nov 16, 2022

If I do SystemUI::AddFont() in the middle of the app run I get (see screenshot) glitchy fonts...

https://media.discordapp.net/attachments/560082229364129803/1026869321600880671/unknown.png

Before that commit it worked ( imgui-HighDPI was added to rbfx)

I did something like:

void Foo::endFrame () {
        // populate ranges.data() after application language setting was changed...
        auto new_font = 
            GetSubsystem<Urho3D::SystemUI>()->AddFont("Data/Fonts/Anonymous Pro.ttf",
                                                      ranges.data(),
                                                      30,
                                                      true);
}

but then it broke 🤷

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

1 participant