Skip to content

Commit

Permalink
nuidemo: use point filtering on font texture
Browse files Browse the repository at this point in the history
  • Loading branch information
redthing1 committed Jul 16, 2024
1 parent 7a8a165 commit e27cef4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions demo/nuidemo/source/gui_root.d
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class GuiRoot : Component, Renderable2D, Updatable {
override void setup() {
bg = ColorToNuklearF(Colors.SKYBLUE);
auto ui_font = raylib.LoadFontEx("./res/SourceSansPro-Regular.ttf", UI_FS, null, 0);
raylib.SetTextureFilter(ui_font.texture, raylib.TextureFilter.TEXTURE_FILTER_POINT);
ctx = InitNuklearEx(ui_font, UI_FS);
ui_scale = Core.window.dpi_scale * Core.render_oversample_factor;
SetNuklearScaling(ctx, ui_scale);
Expand Down

0 comments on commit e27cef4

Please sign in to comment.