summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKushal K S V S <kkushal32@gmail.com>2017-06-29 02:48:36 +0530
committerKushal K S V S <kkushal32@gmail.com>2018-03-18 20:40:44 +0530
commit54cfe58d76cc6ee474e97580ad569f02e4134aa5 (patch)
tree4f05e183264745c8546bde6d127a0885c53ca922 /tests
parent68f7652dbb526a40c113a8c60f34542d1aa5ff3d (diff)
downloadfreetype2-54cfe58d76cc6ee474e97580ad569f02e4134aa5.tar.gz
Apply LCD filter
Diffstat (limited to 'tests')
-rw-r--r--tests/make_png/hash_to_file.c9
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,