diff options
author | Kushal K S V S <kkushal32@gmail.com> | 2017-06-29 02:48:36 +0530 |
---|---|---|
committer | Kushal K S V S <kkushal32@gmail.com> | 2017-07-09 13:20:12 +0530 |
commit | f6f9684fe1cb6cd4b2b055a80b1b996a7c8a02ca (patch) | |
tree | 6be66a73ffee6fc77766e94dd6b84b60e65e2443 | |
parent | 20e9bdeb17618dd1f409cc6f399d565dcf371086 (diff) | |
download | freetype2-f6f9684fe1cb6cd4b2b055a80b1b996a7c8a02ca.tar.gz |
Apply LCD filter
-rw-r--r-- | tests/make_png/hash_to_file.c | 9 |
1 files changed, 9 insertions, 0 deletions
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, |