Display Discrepancy in ImGUI: Font Size Issue with some fonts. Example: 'Zapfino.ttf' #7203
Annie-5393
started this conversation in
Build/Link/Run/Fonts issues ONLY!
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I draw text in ImGUI using the "Zapfino.ttf" font at a size of "96px," it does not display at the original font size. However, when checked on a different platform, the font appears at the proper size. Could you please explain the issue here and suggest a solution?
ImGuiIO & io = ImGui::GetIO();
std::string Font_path = system_path+”src/Fonts/Zapfino.ttf";
ImFont* Zapfino96px = io.Fonts->AddFontFromFileTTF(Font_path.c_str(), 96.0f);
In below, first image is the original image and second is the ImGUI image
Beta Was this translation helpful? Give feedback.
All reactions