-
-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Broken OTF icons in fullscreen #4698
Comments
Yes probably, and it perhaps has nothing do with fonts, it's just that it's failing to create the atlas texture. For icon fonts you can probably set the |
If I load only the regular font and not the icons there is no problem, so it happens when loading the extra fonts (second set)...so perhaps it's not a SDL issue after all? |
So I guess it is a texture size issue, setting oversample to 1 will help for now. (or reducing the range) See "Font atlas too large?" section of https://github.com/ocornut/imgui/blob/master/docs/FONTS.md#font-loading-instructions |
Thanks. It works fine now with OversampleH/V =1. I don't set fullscreen often obviously for development and by the time I noticed this I completely forgot about reducing the icon range and the section about seeing empty rectangles as a result. Thanks for the lightning fast help :) and for the excellent ImGui. |
Branch: master
Back-ends: imgui_impl_sdl.cpp imgui_impl_sdlrenderer.cpp
SDL: 2.0.17
Compiler: gcc
Operating System: Ubuntu/Linux
I'm loading extra fonts like this from MaterialIconsOutlined-Regular.otf:
It works fine when I'm setting the resolution to anything other then fullscreen desktop resolution. But when I'm setting fullscreen and the same as desktop it will display filled rectangles for all the glyphs. See screenshot.
At the same time I'm seeing the following console error:
This issue only manifest under Ubuntu/Linux. It works fine on Fedora/Windows/Android/OSX I'm guessing it's an SDL issue.
More GFX info here from my app:
The text was updated successfully, but these errors were encountered: