font: remove unifont anti-aliasing and reduce font size to 16 (#36508)

remove unifont anti-aliasing and reduce font size to 16

Co-authored-by: Shane Smiskol <shane@smiskol.com>
This commit is contained in:
David
2025-10-28 16:49:33 -05:00
committed by GitHub
parent 5d142326f5
commit 47d0a95fd6
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -405,7 +405,8 @@ class GuiApplication:
with as_file(FONT_DIR) as fspath:
fnt_path = fspath / font_weight_file
font = rl.load_font(fnt_path.as_posix())
rl.set_texture_filter(font.texture, rl.TextureFilter.TEXTURE_FILTER_BILINEAR)
if font_weight_file != FontWeight.UNIFONT:
rl.set_texture_filter(font.texture, rl.TextureFilter.TEXTURE_FILTER_BILINEAR)
self._fonts[font_weight_file] = font
rl.gui_set_font(self._fonts[FontWeight.NORMAL])