From 501535caedf7c071ee04efc9a91707fd3e9c086b Mon Sep 17 00:00:00 2001 From: handa Date: Wed, 19 Jul 2006 02:39:14 +0000 Subject: [PATCH] (OTF_tag_name) [! HAVE_OTF]: New function. --- src/font.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/font.c b/src/font.c index a15afbf..8d03263 100644 --- a/src/font.c +++ b/src/font.c @@ -664,6 +664,16 @@ OTF_tag (char *name) | (! p[2] ? 0 : (p[2] << 8) | p[3])))); } + +void +OTF_tag_name (OTF_Tag tag, char *name) +{ + name[0] = (char) (tag >> 24); + name[1] = (char) ((tag >> 16) & 0xFF); + name[2] = (char) ((tag >> 8) & 0xFF); + name[3] = (char) (tag & 0xFF); + name[4] = '\0'; +} #endif /* not HAVE_OTF */ /* XLFD parser/generator */ -- 1.7.10.4