summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKushal K S V S <kkushal32@gmail.com>2017-08-09 21:14:14 -0700
committerKushal K S V S <kkushal32@gmail.com>2018-03-18 20:40:44 +0530
commit637fb40ac9cbd8c0428b1a9d8e5f7a479e570783 (patch)
treecf966555cec66f2e4c42cb187900e7b1b797d02f
parent14c38dccd18befa0ec91d9107067e69536a5f31f (diff)
downloadfreetype2-637fb40ac9cbd8c0428b1a9d8e5f7a479e570783.tar.gz
Minor fix
-rw-r--r--tests/make_png/README6
-rw-r--r--tests/make_png/make_sprite.c22
-rwxr-xr-x[-rw-r--r--]tests/make_png/test.ttfbin27296 -> 27296 bytes
3 files changed, 19 insertions, 9 deletions
diff --git a/tests/make_png/README b/tests/make_png/README
index 9430a26a9..e41e78a35 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 b85d3eeaf..54af09487 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
index d03485f0c..d03485f0c 100644..100755
--- a/tests/make_png/test.ttf
+++ b/tests/make_png/test.ttf
Binary files differ