1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
Author: Anthony Fok <foka@debian.org>
Description: Experimental new functions needed to replace libft-perl for defoma.
Unfinished.
--- a/FreeType.xs
+++ b/FreeType.xs
@@ -23,6 +23,7 @@
#include FT_OUTLINE_H
#include FT_BBOX_H
#include FT_TYPE1_TABLES_H
+#include FT_SFNT_NAMES_H
#undef assert
#include <assert.h>
@@ -945,6 +946,34 @@
}
+long
+qefft2_face_number_of_charmaps (Font_FreeType_Face face)
+ CODE:
+ RETVAL = face->num_charmaps;
+ OUTPUT:
+ RETVAL
+
+int
+qefft2_face_sfnt_name_count (Font_FreeType_Face face)
+ CODE:
+ RETVAL = FT_Get_Sfnt_Name_Count(face);
+ OUTPUT:
+ RETVAL
+
+SV *
+qefft2_face_sfnt_name (Font_FreeType_Face face, FT_UInt idx)
+ PREINIT:
+ const char *ps_name;
+ CODE:
+ ps_name = FT_Get_Postscript_Name(face);
+ if (ps_name)
+ RETVAL = newSVpv(ps_name, 0);
+ else
+ RETVAL = &PL_sv_undef;
+ OUTPUT:
+ RETVAL
+
+
MODULE = Font::FreeType PACKAGE = Font::FreeType::Glyph PREFIX = qefft2_glyph_
|