summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/xetexdir/XeTeXFontInst.h
diff options
context:
space:
mode:
authorJonathan Kew <jfkthame@googlemail.com>2006-09-07 10:00:56 +0000
committerJonathan Kew <jfkthame@googlemail.com>2006-09-07 10:00:56 +0000
commitbc784de6a2b45e06374f41e4c658fb7d77fa04b8 (patch)
tree849bb11cd3b3cfd0bb5a703506382ad374d8fd37 /Build/source/texk/web2c/xetexdir/XeTeXFontInst.h
parent9a4cd922ac26125fc6de1f680a8ffca74af04956 (diff)
xetex source update, synced with xetex repo rev.365
git-svn-id: svn://tug.org/texlive/trunk@2093 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/xetexdir/XeTeXFontInst.h')
-rw-r--r--Build/source/texk/web2c/xetexdir/XeTeXFontInst.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/Build/source/texk/web2c/xetexdir/XeTeXFontInst.h b/Build/source/texk/web2c/xetexdir/XeTeXFontInst.h
index d158186b66f..a30d7c4b238 100644
--- a/Build/source/texk/web2c/xetexdir/XeTeXFontInst.h
+++ b/Build/source/texk/web2c/xetexdir/XeTeXFontInst.h
@@ -64,8 +64,6 @@ extern "C" {
class XeTeXFontInst : public LEFontInstance, protected FontTableCache
{
protected:
- PlatformFontRef fFontRef;
-
float fPointSize;
le_int32 fUnitsPerEM;
@@ -88,6 +86,8 @@ protected:
bool fVertical; // false = horizontal, true = vertical
+ char *fFilename; // actually holds [filename:index], as used in xetex
+
virtual const void *readTable(LETag tag, le_uint32 *length) const = 0;
void deleteTable(const void *table) const;
void getMetrics();
@@ -98,17 +98,19 @@ protected:
const void *readFontTable(LETag tableTag, le_uint32& len) const;
public:
- XeTeXFontInst(PlatformFontRef fontRef, float pointSize, LEErrorCode &status);
+ XeTeXFontInst(float pointSize, LEErrorCode &status);
virtual ~XeTeXFontInst();
- virtual PlatformFontRef getFontRef() const
- { return fFontRef; }
-
virtual void initialize(LEErrorCode &status);
virtual const void *getFontTable(LETag tableTag) const;
+ virtual const char *getFilename() const
+ {
+ return fFilename;
+ }
+
virtual void setLayoutDirVertical(bool vertical);
virtual bool getLayoutDirVertical() const