freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] GSoC-2017-kushal c7a8d11 07/52: Apply LCD filter


From: Kushal K S V S
Subject: [freetype2] GSoC-2017-kushal c7a8d11 07/52: Apply LCD filter
Date: Fri, 25 Aug 2017 15:09:34 -0400 (EDT)

branch: GSoC-2017-kushal
commit c7a8d111536a07871a86fe487c86ddf4a5b1a2d6
Author: Kushal K S V S <address@hidden>
Commit: Kushal K S V S <address@hidden>

    Apply LCD filter
---
 tests/make_png/hash_to_file.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/tests/make_png/hash_to_file.c b/tests/make_png/hash_to_file.c
index 3bd748a..9a05cc5 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, 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]