Commit f1920351 authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(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.
parent f64934e9
......@@ -335,12 +335,12 @@ struct OpenTypeSpec
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 *
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment