summaryrefslogtreecommitdiff
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>2017-06-29 02:48:36 +0530
commite22dbadba824a9968dce921a1698875468b51388 (patch)
tree0ea9d2e3a220338f22cd34c05f5c31fc392c722b
parent70f52947dae502625d3bf3a085e1bf1f6ff447fe (diff)
downloadfreetype2-e22dbadba824a9968dce921a1698875468b51388.tar.gz
Apply LCD filter
-rw-r--r--new/hash_to_file.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/new/hash_to_file.c b/new/hash_to_file.c
index 3bd748a25..9a05cc5a5 100644
--- a/new/hash_to_file.c
+++ b/new/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,