You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! Sorry if I'm missing something and this is completely obvious, but i can't seem to figure out the problem;
I am trying to make a button, using custom font and all, and i want to center it, but the bottom is always bigger than the top.
I have set the frame padding and the text align so the bug is more visable:
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(0, 0));
ImGui::PushStyleVar(ImGuiStyleVar_ButtonTextAlign, ImVec2(0.f, 0.f));
The problem is only there when i try to change the font to other ones, but there is no problem on the default one.
The fonts I am showing are: ST-SimpleSquare and Helvetica.
(i upscaled the def font in the photos so it is more visible)
!- maybe it is for the letters that have down hangers/cops like: j - y - q - g - p,
but still i must ask how to center it.
Screenshots/Video:
The text was updated successfully, but these errors were encountered:
Version/Branch of Dear ImGui:
Version 1.94, Branch: docking
Back-ends:
imgui_impl_vulk.cpp + imgui_impl_glfw.cpp + custom vulk backend
Compiler, OS:
Windows 10
Full config/build information:
No response
Details:
Hello! Sorry if I'm missing something and this is completely obvious, but i can't seem to figure out the problem;
I am trying to make a button, using custom font and all, and i want to center it, but the bottom is always bigger than the top.
I have set the frame padding and the text align so the bug is more visable:
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(0, 0));
ImGui::PushStyleVar(ImGuiStyleVar_ButtonTextAlign, ImVec2(0.f, 0.f));
The problem is only there when i try to change the font to other ones, but there is no problem on the default one.
The fonts I am showing are: ST-SimpleSquare and Helvetica.
(i upscaled the def font in the photos so it is more visible)
!- maybe it is for the letters that have down hangers/cops like: j - y - q - g - p,
but still i must ask how to center it.
Screenshots/Video:
The text was updated successfully, but these errors were encountered: