Skip to content

Wrong font size #6

@selimanac

Description

@selimanac

First of all this is a great tool, I love it, thank you very much.

I have a stupid problem about the font sizes. But I 'm not sure why this is happening or what is wrong. I'll be glad if you can point me to the right direction.

Here is my font icon result. As you can see only (blue area) more than half of them is active. Looks like their size is wrong. This also cause a problem MainMenuBar's size(height) and those icons are not at the center of it.
2020-05-11 14-14-50 2020-05-11 14_16_54

My settings:

Screen Shot 2020-05-11 at 14 21 49

I guess merging fonts cause this problem. When I disable merging, it works

 // ImGui::GetIO().Fonts->AddFontDefault();
    static const ImWchar icons_ranges[] = {ICON_MIN_FileMenu, ICON_MAX_FileMenu, 0};
    ImFontConfig icons_config;
    // icons_config.MergeMode = true;
    icons_config.PixelSnapH = true;
    ImGui::GetIO().Fonts->AddFontFromMemoryCompressedBase85TTF(FONT_ICON_BUFFER_NAME_FileMenu, 22.0f, &icons_config, icons_ranges);

Screen Shot 2020-05-11 at 15 11 51

Is there a way to fix this? Any suggestions?

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions