diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2014-07-25 13:56:38 +0000 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2014-07-25 13:56:38 +0000 |
commit | 796176898c849ec72156930daa2ea150b68c48a3 (patch) | |
tree | df9ae1a767183ead147947882f8895cf07f2417a /Build/source/texk/dvipdfm-x/tt_post.c | |
parent | 31053cc388d6f0b348b297a3a0b950e8d707916a (diff) |
Remove most of font related #ifdef XETEX
Almost all of this is not needed now since XeTeX’s native fonts are
always passed by file name and face index now, so we can use original
dvipdfmx direct file based code instead of using a FreeType font face.
Has the side effect of fixing:
https://sourceforge.net/p/xetex/bugs/97/
git-svn-id: svn://tug.org/texlive/trunk@34718 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x/tt_post.c')
-rw-r--r-- | Build/source/texk/dvipdfm-x/tt_post.c | 8 |
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) { |