Skip to content

Commit

Permalink
enable hinting of rendered text
Browse files Browse the repository at this point in the history
  • Loading branch information
Lawrence D'Oliveiro committed Nov 16, 2016
1 parent 15977b6 commit 6fd3a70
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/subfont.c
Expand Up @@ -93,9 +93,8 @@ enum
COLIDX_OUTLINE, /* text outline colour */
COLIDX_SHADOW /* text shadow colour */
};
static int const font_load_flags = FT_LOAD_NO_HINTING | FT_LOAD_MONOCHROME | FT_LOAD_RENDER;
/* static int const font_load_flags = FT_LOAD_NO_HINTING; */ /* Anti-aliasing */
/* fixme: should probably take out FT_LOAD_NO_HINTING and add FT_LOAD_TARGET_MONO */
static int const font_load_flags = FT_LOAD_MONOCHROME | FT_LOAD_RENDER;
/* worth adding FT_LOAD_TARGET_MONO as well? */
float text_font_scale_factor = 28.0; /* font size in font units */
float subtitle_font_thickness = 3.0; /*2.0*/
colorspec
Expand Down

0 comments on commit 6fd3a70

Please sign in to comment.