You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.
Has anyone managed to load and use a font other than the default one? It's not working for me and have no idea what I'm doing wrong.
This is what I do:
var io = ImGui.GetIO();
io.Fonts.AddFontDefault();
var font = io.Fonts.AddFontFromFileTTF( font_path, font_pixels ); // font stored in a dictionary
io.Fonts.Build();>
I checked that the font is properly loaded (.IsLoaded()), but the result is that all fonts get corrupted (even the default one). In this case I'm not even using the PushFont/PopFont pair.
I've seen that there's a FontAtlasConfigAsset struct referenced from the DearImGui script source code, but I don't have access to it from the IDE and there seems to be literally zero information about how it's used.
Thanks everyone in advance.
The text was updated successfully, but these errors were encountered:
Hi there :)
Has anyone managed to load and use a font other than the default one? It's not working for me and have no idea what I'm doing wrong.
This is what I do:
I checked that the font is properly loaded (.IsLoaded()), but the result is that all fonts get corrupted (even the default one). In this case I'm not even using the PushFont/PopFont pair.
I've seen that there's a FontAtlasConfigAsset struct referenced from the DearImGui script source code, but I don't have access to it from the IDE and there seems to be literally zero information about how it's used.
Thanks everyone in advance.
The text was updated successfully, but these errors were encountered: