-
Notifications
You must be signed in to change notification settings - Fork 1
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
How to solve the problem of blurred Chinese fonts #1
Comments
You shouldn't used fixed (in this context) this will create a heap corruption, you either have to use the File load function or you have to keep the pointer alive for the time that the texture is created. And additionally read the Ownership comment, ImGui cannot free a piece of memory allocated with the GC either use mashal AllocH and Free or my utils. |
the pointer has to be alive until you call ImGui.GetTexDataAsRGBA32(io.Fonts, &pixels, &width, &height, null); and create a texture after that it's safe to free. |
if you want that imgui keeps ownership then i suggest using ImGui.MemAlloc instead of Marshal or my utils, this prevents issues with freeing. |
It may be a problem with ImGui Maybe there is a way to make Chinese fonts not appear blurry at 16 pixels, but I haven't found it yet. |
IMGUI.net sample

Hexa.NET.ImGui.Widgets demo

Maybe there is a way to make Chinese fonts not appear blurry at 16 pixels, but I haven't found it yet.
The text was updated successfully, but these errors were encountered: