Allen Webster 2016-07-05 10:08:09 -04:00
commit 5e0030825b
2 changed files with 5 additions and 4 deletions

View File

@ -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,

View File

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