freetype-commit
[Top][All Lists]
Advanced

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

[freetype2] arv-work b67422b: Use git FT for compilation include path


From: Arvinder Bhathal
Subject: [freetype2] arv-work b67422b: Use git FT for compilation include path
Date: Sat, 8 Jul 2017 20:42:45 -0400 (EDT)

branch: arv-work
commit b67422bf4a2ab73b9fbaf73172760b216191b2e5
Author: Arvinder Bhathal <address@hidden>
Commit: Arvinder Bhathal <address@hidden>

    Use git FT for compilation include path
---
 tests/web_interface/README | 2 +-
 tests/web_interface/main.c | 7 ++++---
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/tests/web_interface/README b/tests/web_interface/README
index 274af8e..0044fac 100644
--- a/tests/web_interface/README
+++ b/tests/web_interface/README
@@ -1,5 +1,5 @@
 Compile with current ft folder:
-gcc main.c bitmap.c murmur3.c -Wall -I /usr/local/include/freetype2/ 
-lfreetype -ldl -lpng -lm -o main
+gcc main.c bitmap.c murmur3.c -Wall -I ../../include/ -ldl -lpng -lm -o main
 
 Run 
 ./main <base libfreetype.so> <test libfreetype.so> <size> <font file>
diff --git a/tests/web_interface/main.c b/tests/web_interface/main.c
index a535378..2e37f33 100644
--- a/tests/web_interface/main.c
+++ b/tests/web_interface/main.c
@@ -32,7 +32,7 @@ int main(int argc, char const *argv[])
   const char* test_ft; // path of test ft
   FT_UInt32 size; // char size
   const char* font; // path of font
-  int mode;
+  int mode; 
 
   // create array of structs with size 1
   struct entry* entries = malloc(1 * sizeof(struct entry));
@@ -190,8 +190,9 @@ void render(const char* ft_dir, const char* font, FT_UInt32 
size, int mode, stru
       entries = &(*entries);
       *entries_len = *entries_len * 2;
     }
-
-    (*entries)[i].difference = 0.0; // initially assume no difference between 
glyphs
+    
+    // initially assume no difference between glyphs
+    (*entries)[i].difference = 0.0; 
 
     // if hashes are the same, move to the next glyph
     if (((mode == 2) || (mode == 3)) && 



reply via email to

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