diff options
Diffstat (limited to 'Build/source/texk/web2c/xetexdir/XeTeXFontInst_FC.h')
-rw-r--r-- | Build/source/texk/web2c/xetexdir/XeTeXFontInst_FC.h | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/xetexdir/XeTeXFontInst_FC.h b/Build/source/texk/web2c/xetexdir/XeTeXFontInst_FC.h new file mode 100644 index 00000000000..fc88f509c13 --- /dev/null +++ b/Build/source/texk/web2c/xetexdir/XeTeXFontInst_FC.h @@ -0,0 +1,76 @@ +/****************************************************************************\ + Part of the XeTeX typesetting system + copyright (c) 1994-2006 by SIL International + written by Jonathan Kew + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL SIL INTERNATIONAL BE LIABLE FOR +ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF +CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +Except as contained in this notice, the name of SIL International +shall not be used in advertising or otherwise to promote the sale, +use or other dealings in this Software without prior written +authorization from SIL International. +\****************************************************************************/ + +/* + * file name: XeTeXFontInst_FC.h + * + * created on: 2005-10-25 + * created by: Jonathan Kew + */ + + +#ifndef __XeTeXFontInst_FC_H +#define __XeTeXFontInst_FC_H + +#include "XeTeXFontInst.h" + +#include <fontconfig/fontconfig.h> + +#include <ft2build.h> +#include FT_FREETYPE_H + +class XeTeXFontInst_FC : public XeTeXFontInst +{ +protected: + + const void * readTable(LETag tag, le_uint32 *length) const; + + FT_Face face; + bool fFreeTypeOnly; + +public: + XeTeXFontInst_FC(FcPattern* pattern, float pointSize, LEErrorCode &status); + + virtual ~XeTeXFontInst_FC(); + + virtual void initialize(LEErrorCode &status); + + virtual char* getPSName() const; // returns a malloced string + + virtual void getGlyphBounds(LEGlyphID gid, GlyphBBox* bbox); + + // overrides of XeTeXFontInst methods, in case it's not an sfnt + virtual le_uint16 getNumGlyphs() const; + virtual void getGlyphAdvance(LEGlyphID glyph, LEPoint &advance) const; + virtual LEGlyphID mapCharToGlyph(LEUnicode32 ch) const; + virtual LEGlyphID mapGlyphToIndex(const char* glyphName) const; +}; + +#endif |