From a7707aa7033945f761af98db85cded2984d07066 Mon Sep 17 00:00:00 2001 From: cuu Date: Sat, 26 Feb 2022 17:13:58 +0800 Subject: [PATCH] disable freetype AA --- Code/thermal_printer/printer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Code/thermal_printer/printer.c b/Code/thermal_printer/printer.c index 42dde3d..0532f4c 100644 --- a/Code/thermal_printer/printer.c +++ b/Code/thermal_printer/printer.c @@ -470,7 +470,8 @@ uint8_t print_lines_ft(CONFIG*cfg) { int glyph_height = cfg->face->glyph->metrics.height / 64; int advance = cfg->face->glyph->metrics.horiAdvance / 64; int x_off = (advance - glyph_width) / 2; - FT_Render_Glyph(cfg->face->glyph, FT_RENDER_MODE_NORMAL); + //FT_Render_Glyph(cfg->face->glyph, FT_RENDER_MODE_NORMAL); + FT_Render_Glyph(cfg->face->glyph, FT_RENDER_MODE_MONO); //disable AA j = 0; w= 0; if(lastj !=0){j= lastj;}