From d49ed3a2d4662d8d0b60a667d7c94d98a06f608f Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Tue, 5 Jul 2016 10:02:55 -0400 Subject: [PATCH] use hinting parameter on linux --- linux_4ed.cpp | 4 +++- linux_font.cpp | 5 ++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/linux_4ed.cpp b/linux_4ed.cpp index 21fa2185..2fb85dce 100644 --- a/linux_4ed.cpp +++ b/linux_4ed.cpp @@ -1,3 +1,4 @@ + /* * Mr. 4th Dimention - Allen Webster * @@ -1167,7 +1168,8 @@ Font_Load_Sig(system_draw_font_load){ for(; attempts < 3; ++attempts){ #if LINUX_FONTS - success = linux_font_load(&linuxvars.font_part, font_out, filename, pt_size, tab_width); + success = linux_font_load(&linuxvars.font_part, font_out, filename, pt_size, tab_width, + linuxvars.settings.use_hinting); #else success = font_load( &linuxvars.font_part, diff --git a/linux_font.cpp b/linux_font.cpp index 02515151..38694826 100644 --- a/linux_font.cpp +++ b/linux_font.cpp @@ -53,8 +53,7 @@ linux_get_sys_font(char* name, i32 pt_size){ } internal b32 -linux_font_load(Partition *part, Render_Font *rf, char *name, i32 pt_size, i32 tab_width){ - +linux_font_load(Partition *part, Render_Font *rf, char *name, i32 pt_size, i32 tab_width, b32 use_hinting){ b32 result = 0; Temp_Memory temp = begin_temp_memory(part); @@ -70,7 +69,7 @@ linux_font_load(Partition *part, Render_Font *rf, char *name, i32 pt_size, i32 t #endif if (filename != 0){ - result = font_load_freetype(part, rf, filename, pt_size, tab_width); + result = font_load_freetype(part, rf, filename, pt_size, tab_width, use_hinting); } end_temp_memory(temp);