changeset 91189:ffc66d7b1d98

(struct OpenTypeSpec): New struct. (OTF_SYM_TAG, OTF_TAG_STR): New macros. (ftfont_get_open_type_spec): New function. (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
author Kenichi Handa <handa@m17n.org>
date Wed, 05 Dec 2007 12:03:13 +0000
parents 9011e1a95ab5
children cdc63ae7ea34
files src/ftfont.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/ftfont.c	Wed Dec 05 12:02:35 2007 +0000
+++ b/src/ftfont.c	Wed Dec 05 12:03:13 2007 +0000
@@ -335,12 +335,12 @@
     tag = (p[0] << 24) | (p[1] << 16) | (p[2] << 8) | p[3];	\
   } while (0)
 
-#define OTF_TAG_STR(tag, str)			\
+#define OTF_TAG_STR(tag, p)			\
   do {						\
-    (str)[0] = (char) (tag >> 24);		\
-    (str)[1] = (char) ((tag >> 16) & 0xFF);	\
-    (str)[2] = (char) ((tag >> 8) & 0xFF);	\
-    (str)[3] = (char) (tag & 0xFF);		\
+    (p)[0] = (char) (tag >> 24);		\
+    (p)[1] = (char) ((tag >> 16) & 0xFF);	\
+    (p)[2] = (char) ((tag >> 8) & 0xFF);	\
+    (p)[3] = (char) (tag & 0xFF);		\
   } while (0)
 
 static struct OpenTypeSpec *