-
Notifications
You must be signed in to change notification settings - Fork 523
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
SDF text rendering #261
Comments
To be clear I would have to say that all text rendering is done via ImGui. Node editor does not touch that. Solution I'm using in our production code is to have two fonts with two different sizes. Now that I realized support for that was my unpublished change I made a PR which adds RasterizationDensity. Back to solution I use. I generate two fonts, one with 100% scaling, one with 400% scalling. I pick default font based on how much canvas is zoomed in. When it is zoomed-in > 200% I use 400% font. Otherwise I use 100%. Addressing your question directly: As an extra when view is zoomed out to avoid tons of small unreadable texts I fade them away. Does this help with your case? Support for SDF fonts is possible and can be done. Node editor itself does not impose any limitation in that matter. When in scope of this project it would be the job of example application harness to support that. |
That sounds good! For my projects, I depend on your patched copy of imgui in your "external" folder, because that is also patched with the FringeScale feature. This might be a big ask, but can you patch the RasterizationDensity feature into your external\imgui code? |
Did you know that official ImGui repository have FringeScale merged? : ) Backport of BDW. You can pick latest ImGui and cherry-pick Stack Layout PR if you're using it. Please let me know if that does work for you. |
Have you experimented with SDF text rendering? Or is there a way to make text more visible when the nodes are very small?
The text was updated successfully, but these errors were encountered: