summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/xetexdir/XeTeXFontInst_Mac.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/xetexdir/XeTeXFontInst_Mac.cpp')
-rw-r--r--Build/source/texk/web2c/xetexdir/XeTeXFontInst_Mac.cpp18
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);
+}