-
Imgui font looks weird on my android phone, how to adjust font |
Beta Was this translation helpful? Give feedback.
Answered by
rh101
Apr 7, 2025
Replies: 1 comment 6 replies
-
Are you sure the issue is the font? Everything looks squished horizontally, so it may be a scaling issue. How is your app set up in AppDelegate? Show the contents of that file, but most importantly the code in If you do want to change the font, you can try: |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OK, so I managed to reproduce it if the app is started in portrait mode, but only if
ImGuiPresenter::setViewResolution
is not called.So, to fix this, make sure you call:
ax::extension::ImGuiPresenter::getInstance()->setViewResolution(width, height);
The width and height are whatever values you want in order to get the correct ImGui scale. For example:
ax::extension::ImGuiPresenter::getInstance()->setViewResolution(designResolutionSize.width, designResolutionSize.height);
That should fix the issue, because the width and height need to match the aspect ratio based on the design resolution. The values do not need to equal the design resolution, but they do need to be the same aspect ratio. …