aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2007-12-05 12:03:13 +0000
committerKenichi Handa2007-12-05 12:03:13 +0000
commitf192035123f874808a791718fca44d7100d5fcad (patch)
tree82dd54266a376aa792619c0ffb8a813dce88d644 /src
parentf64934e9731ea25a53c15ff5bc3afa47e07587f4 (diff)
downloademacs-f192035123f874808a791718fca44d7100d5fcad.tar.gz
emacs-f192035123f874808a791718fca44d7100d5fcad.zip
(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.
Diffstat (limited to 'src')
-rw-r--r--src/ftfont.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ftfont.c b/src/ftfont.c
index 50ad0f460de..4170a2a892a 100644
--- a/src/ftfont.c
+++ b/src/ftfont.c
@@ -335,12 +335,12 @@ struct OpenTypeSpec
335 tag = (p[0] << 24) | (p[1] << 16) | (p[2] << 8) | p[3]; \ 335 tag = (p[0] << 24) | (p[1] << 16) | (p[2] << 8) | p[3]; \
336 } while (0) 336 } while (0)
337 337
338#define OTF_TAG_STR(tag, str) \ 338#define OTF_TAG_STR(tag, p) \
339 do { \ 339 do { \
340 (str)[0] = (char) (tag >> 24); \ 340 (p)[0] = (char) (tag >> 24); \
341 (str)[1] = (char) ((tag >> 16) & 0xFF); \ 341 (p)[1] = (char) ((tag >> 16) & 0xFF); \
342 (str)[2] = (char) ((tag >> 8) & 0xFF); \ 342 (p)[2] = (char) ((tag >> 8) & 0xFF); \
343 (str)[3] = (char) (tag & 0xFF); \ 343 (p)[3] = (char) (tag & 0xFF); \
344 } while (0) 344 } while (0)
345 345
346static struct OpenTypeSpec * 346static struct OpenTypeSpec *