Skip to content

Imgui font looks weird on my android phone #2485

Closed Answered by rh101
mori1234 asked this question in Q&A
Discussion options

You must be logged in to vote

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. …

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@mori1234
Comment options

@rh101
Comment options

rh101 Apr 3, 2025
Collaborator

@mori1234
Comment options

@rh101
Comment options

rh101 Apr 7, 2025
Collaborator

Answer selected by rh101
@mori1234
Comment options

@rh101
Comment options

rh101 Apr 8, 2025
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants