From 54cfe58d76cc6ee474e97580ad569f02e4134aa5 Mon Sep 17 00:00:00 2001 From: Kushal K S V S Date: Thu, 29 Jun 2017 02:48:36 +0530 Subject: Apply LCD filter --- tests/make_png/hash_to_file.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests') diff --git a/tests/make_png/hash_to_file.c b/tests/make_png/hash_to_file.c index 3bd748a25..9a05cc5a5 100644 --- a/tests/make_png/hash_to_file.c +++ b/tests/make_png/hash_to_file.c @@ -48,6 +48,15 @@ int main (int argc, char const *argv[]) printf("Error while initialising library\n"); } + if (render_mode > 1 ) + { + error = FT_Library_SetLcdFilter( library, + FT_LCD_FILTER_DEFAULT ); + if(error){ + printf("Error while setting LCD filter\n"); + } + } + error = FT_New_Face( library, font_file, 0, -- cgit v1.2.1