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);