summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/xetexdir/XeTeXLayoutInterface.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/xetexdir/XeTeXLayoutInterface.h')
-rw-r--r--Build/source/texk/web2c/xetexdir/XeTeXLayoutInterface.h19
1 files changed, 16 insertions, 3 deletions
diff --git a/Build/source/texk/web2c/xetexdir/XeTeXLayoutInterface.h b/Build/source/texk/web2c/xetexdir/XeTeXLayoutInterface.h
index d92cca16d91..620eb050773 100644
--- a/Build/source/texk/web2c/xetexdir/XeTeXLayoutInterface.h
+++ b/Build/source/texk/web2c/xetexdir/XeTeXLayoutInterface.h
@@ -28,10 +28,22 @@ use or other dealings in this Software without prior written
authorization from SIL International.
\****************************************************************************/
+#ifndef XETEX_LAYOUT_INTERFACE_H
+#define XETEX_LAYOUT_INTERFACE_H 1
+
#ifdef XETEX_MAC
#include <Carbon/Carbon.h>
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
+typedef struct XeTeXFont_rec* XeTeXFont;
+typedef struct XeTeXLayoutEngine_rec* XeTeXLayoutEngine;
+#ifdef __cplusplus
+};
+#endif
+
#include "XeTeX_ext.h"
#include "XeTeXFontMgr.h"
@@ -39,9 +51,6 @@ authorization from SIL International.
extern "C" {
#endif
-typedef struct XeTeXFont_rec* XeTeXFont;
-typedef struct XeTeXLayoutEngine_rec* XeTeXLayoutEngine;
-
extern char gPrefEngine;
int getCachedGlyphBBox(UInt16 fontID, UInt16 glyphID, GlyphBBox* bbox);
@@ -67,6 +76,7 @@ const char* getFullName(PlatformFontRef fontRef);
const char* getFontFilename(XeTeXLayoutEngine engine);
void getNames(PlatformFontRef fontRef, const char** psName, const char** famName, const char** styName);
+double getDesignSize(XeTeXFont font);
void deleteFont(XeTeXFont font);
@@ -139,3 +149,6 @@ int getFontCharRange(XeTeXLayoutEngine engine, int reqFirst);
#ifdef __cplusplus
};
#endif
+
+#endif /* XETEX_LAYOUT_INTERFACE_H */
+