freetype-commit
[Top][All Lists]
Advanced

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

[freetype2] GSoC-2017-kushal 3fdabcd 50/52: Minor fix


From: Kushal K S V S
Subject: [freetype2] GSoC-2017-kushal 3fdabcd 50/52: Minor fix
Date: Fri, 25 Aug 2017 15:09:42 -0400 (EDT)

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

    Minor fix
---
 tests/make_png/README        |   6 +-----
 tests/make_png/make_sprite.c |  22 ++++++++++++++++++----
 tests/make_png/test.ttf      | Bin
 3 files changed, 19 insertions(+), 9 deletions(-)

diff --git a/tests/make_png/README b/tests/make_png/README
index 9430a26..e41e78a 100644
--- a/tests/make_png/README
+++ b/tests/make_png/README
@@ -21,13 +21,9 @@ NOTE: One version of FreeType is referred as "base" version 
and the
   
   2. Compile the two versions 
   -------------------------------------     
-   Go to the "base" version's folder and change the default 
-   installation directory to the "test" folder created.
+   Go to the "base" version's folder and compile the library
 
            ./configure
-
-    Compile the library
-
            make 
 
     Repeat step 2. for the "test" version as well.
diff --git a/tests/make_png/make_sprite.c b/tests/make_png/make_sprite.c
index b85d3ee..54af094 100644
--- a/tests/make_png/make_sprite.c
+++ b/tests/make_png/make_sprite.c
@@ -90,6 +90,11 @@ int main(int argc, char const *argv[])
                                      FT_Bitmap*, 
                                      FT_Int);
 
+  FT_Error ( *Base_Get_Glyph_Name )( FT_Face,
+                                     FT_UInt,
+                                     FT_Pointer,
+                                     FT_UInt );
+
   FT_Error ( *Base_Done_Face )( FT_Face );
 
   FT_Error ( *Base_Done_FreeType )( FT_Library );
@@ -126,6 +131,11 @@ int main(int argc, char const *argv[])
                                      FT_Bitmap*, 
                                      FT_Int);
 
+  FT_Error ( *Test_Get_Glyph_Name )( FT_Face,
+                                     FT_UInt,
+                                     FT_Pointer,
+                                     FT_UInt );
+
   FT_Error ( *Test_Done_Face )( FT_Face );
   
   FT_Error ( *Test_Done_FreeType )( FT_Library );
@@ -164,6 +174,8 @@ int main(int argc, char const *argv[])
                                               "FT_Bitmap_Init");
   *(void**)( & Base_Bitmap_Convert )  = dlsym(base_handle,
                                               "FT_Bitmap_Convert");
+  *(void**)( & Base_Get_Glyph_Name )  = dlsym(base_handle,
+                                              "FT_Get_Glyph_Name");
   *(void**)( & Base_Done_Face )       = dlsym(base_handle,
                                               "FT_Done_Face");
   *(void**)( & Base_Done_FreeType )   = dlsym(base_handle,
@@ -187,6 +199,8 @@ int main(int argc, char const *argv[])
                                               "FT_Bitmap_Init");
   *(void**)( & Test_Bitmap_Convert )  = dlsym(test_handle,
                                               "FT_Bitmap_Convert");
+  *(void**)( & Test_Get_Glyph_Name )  = dlsym(base_handle,
+                                              "FT_Get_Glyph_Name");
   *(void**)( & Test_Done_Face )       = dlsym(test_handle,
                                               "FT_Done_Face");
   *(void**)( & Test_Done_FreeType )   = dlsym(test_handle,
@@ -420,10 +434,10 @@ int main(int argc, char const *argv[])
 
       if (FT_HAS_GLYPH_NAMES(base_face))
       {
-        FT_Get_Glyph_Name(  base_face,
-                            i,
-                            glyph_name,
-                            50 );
+        Base_Get_Glyph_Name( base_face,
+                             i,
+                             glyph_name,
+                             50 );
       }
 
       sprintf( output_file_name, "./html/images/%s.png", glyph_name );
diff --git a/tests/make_png/test.ttf b/tests/make_png/test.ttf
old mode 100644
new mode 100755



reply via email to

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