-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
Blurry fonts in high DPI #1065
Comments
You have to ask for double-sized fonts. Instead of asking for a size of 10, ask for 20, etc. |
Yeah I'd hoped that |
A workaround for this is to add a font other than the default and setting |
This is still not resolved. I literally tried everything, default stb backend supports oversample which is in some cases even looking good, but not nice hinting in small font sizes. FreeType with oversampling, has nice hinting but oversampling does not work, as FreeType does not support oversampling and gives blurry fonts. How to make fonts look good on macOS with High DPI with FreeType? How to add oversampling to FreeType renderer? |
You don't need to change your font size, which will screw your layout. What you need is to increase resolution of generated font atlas. And that is what You can cherry pick patch to ImGui & FreeType atlas builder that add Note: Oversampling afaik is here to fight artifacts on small fonts rendered with stb_truetype. It it not suited to change atlas density.
|
@thedmd Do you have any plans to upstream the font density patch? (If not I might pick it up myself if it works well for me.) |
@whitequark Ability to control density was merged into ImGui about 8 months ago. I forgot about this thread, so I will take the opportunity now to mention it. :) You can control density with Line 3005 in 1ec1f7a
|
Thanks! This has sent me to a 7-hour-long rabbit hole of updating the Rust bindings... |
Hello. I tried use scaling in IMGui but seen that font too blurry. Also test window not scaling.
The text was updated successfully, but these errors were encountered: