Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing issue where CJK text draws just a couple pixels too high on ImGui #73616

Merged
merged 1 commit into from
May 10, 2024

Conversation

katemonster33
Copy link
Contributor

Summary

Bugfixes "Fixing issue where CJK text draws just a couple pixels too high on ImGui"

Purpose of change

Fixes: #73061

Describe the solution

Modified the alignment modification when drawing CJK fonts on the screen using the ImGui "fallback" rendering.

Describe alternatives you've considered

Testing

Set language to Russian, verify that the text looks to be about the same height as any English characters around it (i.e. in the "Quit" popup verify that the parenthesis don't appear lower than the Russian text). Set language to Chinese, verify text doesn't draw too low.

Additional context

@github-actions github-actions bot added Info / User Interface Game - player communication, menus, etc. [C++] Changes (can be) made in C++. Previously named `Code` <Bugfix> This is a fix for a bug (or closes open issue) astyled astyled PR, label is assigned by github actions json-styled JSON lint passed, label assigned by github actions labels May 10, 2024
@dseguin dseguin merged commit dacd72a into CleverRaven:master May 10, 2024
25 of 26 checks passed
@NetSysFire NetSysFire added the ImGui Anything related to the new ImGui UI for SDL/tiles or ImTui for curses builds label May 10, 2024
@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` ImGui Anything related to the new ImGui UI for SDL/tiles or ImTui for curses builds Info / User Interface Game - player communication, menus, etc. json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ImGui windows. Using different fonts in one sentence
3 participants