diff options
author | Han The Thanh <hanthethanh@gmail.com> | 2010-06-05 07:28:22 +0000 |
---|---|---|
committer | Han The Thanh <hanthethanh@gmail.com> | 2010-06-05 07:28:22 +0000 |
commit | fc6e759582a57b0d59398fb5e923157416fc0055 (patch) | |
tree | 4bab960903146ab1cc11d0666a9fa5d240f5d6d3 /Build/source/texk/web2c/xetexdir/XeTeXFontInst_Mac.cpp | |
parent | 55524f8b6257bf114c5a49091a82b66225b4646e (diff) |
added character protrusion for xetex; changed version string to 0.9997.1
git-svn-id: svn://tug.org/texlive/trunk@18754 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/xetexdir/XeTeXFontInst_Mac.cpp')
-rw-r--r-- | Build/source/texk/web2c/xetexdir/XeTeXFontInst_Mac.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/xetexdir/XeTeXFontInst_Mac.cpp b/Build/source/texk/web2c/xetexdir/XeTeXFontInst_Mac.cpp index 60a54060799..4737c497b59 100644 --- a/Build/source/texk/web2c/xetexdir/XeTeXFontInst_Mac.cpp +++ b/Build/source/texk/web2c/xetexdir/XeTeXFontInst_Mac.cpp @@ -112,3 +112,21 @@ void XeTeXFontInst_Mac::getGlyphBounds(LEGlyphID gid, GlyphBBox* bbox) { GetGlyphBBox_AAT(fStyle, gid, bbox); } + +LEGlyphID +XeTeXFontInst_Mac::mapGlyphToIndex(const char* glyphName) const +{ + LEGlyphID rval = XeTeXFontInst::mapGlyphToIndex(glyphName); + if (rval) + return rval; + return GetGlyphIDFromCGFont(fFontRef, glyphName); +} + +const char* +XeTeXFontInst_Mac::getGlyphName(LEGlyphID gid, int& nameLen) +{ + const char* rval = XeTeXFontInst::getGlyphName(gid, nameLen); + if (rval) + return rval; + return GetGlyphNameFromCGFont(fFontRef, gid, &nameLen); +} |