-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
[bug] AddFont not working depending on scale factor on windows #759
Comments
Use original key for extraFontMap in FontAtlasProsessor.go
|
I'll try that later today. Thanks. :) |
Works. :) Is it worth it to make a PR for this or should it be fixed in the upcoming c-imgui version if still needed? |
idk, could you check if this issue still exists on master? |
I'll check. Last time I couldn't get it to run with master. I'll try again and report back. :) |
Still persists on master as well. It also leads to this odd window that keeps getting bigger like mentioned in #155 . But I can see the fonts in the beginning and on 125% scaling they are not the fonts they should be and not in the right size. Here is a screen recording: 2024-03-07.08-17-50.mp4 |
"Grow to death" is gone. 👍 Font sizes are not working like described in the initial post of the thread #759 (comment) |
@gucio321 does it make sence to test with 0.9.X again? :) |
Meh, not really. I think it's still a bug in giu unfortunately |
What happend?
When adding font in different sizes with
AddFont
to the FontAtlas, it is working fine on 100% Scale. On other Scales it is not working or partly working. e.g. on 125% no custom fonts work while on 150% some work.Beside the example below I also made as simple as possible example repo: https://github.com/0xkalle/giu-font-test
I also tried to run with master. But it is crashing (even the hello world example crashes)
Code example
main.go
To Reproduce
Results are:
100%
125%
150%
Version
(latest)
OS
windows 10
The text was updated successfully, but these errors were encountered: