From 25f13b753bb75256fc46dcf1e7e90ce7cd5ed067 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Thu, 23 Feb 2023 20:52:31 +0900 Subject: [PATCH] Fix "blurry" text --- src/agnostic_interface/raylib_impl.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/agnostic_interface/raylib_impl.rs b/src/agnostic_interface/raylib_impl.rs index f65d9d9..f7ab68a 100644 --- a/src/agnostic_interface/raylib_impl.rs +++ b/src/agnostic_interface/raylib_impl.rs @@ -956,6 +956,10 @@ impl GameInterface for RaylibGame { let path_buf: Vec = path_str.as_bytes().into(); let cstring: CString = CString::from_vec_unchecked(path_buf); let font = ffi::LoadFont(cstring.as_ptr()); + ffi::SetTextureFilter( + font.texture, + ffi::TextureFilter_TEXTURE_FILTER_BILINEAR as ::std::os::raw::c_int, + ); let raylib_font_handler = RaylibFontHandler { font: Rc::new(RaylibFont { font }), };