From 4690459a13f09c8ed11d3d216c753d9a23a5fdeb Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Sun, 26 Sep 2021 19:46:32 -0400 Subject: [PATCH] Used different weights. --- src/renderer.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/renderer.c b/src/renderer.c index 2b53e7ba..5dc966f3 100644 --- a/src/renderer.c +++ b/src/renderer.c @@ -77,10 +77,11 @@ static int font_set_load_options(RenFont* font) { static int font_set_render_options(RenFont* font) { if (font->subpixel) { + unsigned char weights[] = { 0x10, 0x40, 0x70, 0x40, 0x10 } ; switch (font->hinting) { case FONT_HINTING_NONE: FT_Library_SetLcdFilter(library, FT_LCD_FILTER_NONE); break; - case FONT_HINTING_SLIGHT: FT_Library_SetLcdFilter(library, FT_LCD_FILTER_LIGHT); break; - case FONT_HINTING_FULL: FT_Library_SetLcdFilter(library, FT_LCD_FILTER_DEFAULT); break; + case FONT_HINTING_SLIGHT: + case FONT_HINTING_FULL: FT_Library_SetLcdFilter(library, FT_LCD_FILTER_LIGHT); FT_Library_SetLcdFilterWeights(library, weights); break; } return FT_RENDER_MODE_LCD; } else {