summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfm-x/tt_post.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/dvipdfm-x/tt_post.c')
-rw-r--r--Build/source/texk/dvipdfm-x/tt_post.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/Build/source/texk/dvipdfm-x/tt_post.c b/Build/source/texk/dvipdfm-x/tt_post.c
index 9b122412091..8c7c165606d 100644
--- a/Build/source/texk/dvipdfm-x/tt_post.c
+++ b/Build/source/texk/dvipdfm-x/tt_post.c
@@ -171,6 +171,14 @@ tt_lookup_post_table (struct tt_post_table *post, const char *glyphname)
return 0;
}
+char*
+tt_get_glyphname (struct tt_post_table *post, USHORT gid)
+{
+ if (gid < post->count)
+ return xstrdup(post->glyphNamePtr[gid]);
+ return NULL;
+}
+
void
tt_release_post_table (struct tt_post_table *post)
{