diff options
author | Jonathan Kew <jfkthame@googlemail.com> | 2006-12-06 17:29:15 +0000 |
---|---|---|
committer | Jonathan Kew <jfkthame@googlemail.com> | 2006-12-06 17:29:15 +0000 |
commit | e908059c852606dc94864e34c963f682da27e67b (patch) | |
tree | 627f62320c0c51fd1125ae98b2bf3e2c84ca9f1c /Build/source/texk/web2c/xetexdir/XeTeXOTMath.h | |
parent | 62dfc6d9588e7c3aa6a85b06b53479697b272243 (diff) |
xetex updates for version 0.996
git-svn-id: svn://tug.org/texlive/trunk@2602 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/xetexdir/XeTeXOTMath.h')
-rw-r--r-- | Build/source/texk/web2c/xetexdir/XeTeXOTMath.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/xetexdir/XeTeXOTMath.h b/Build/source/texk/web2c/xetexdir/XeTeXOTMath.h new file mode 100644 index 00000000000..a1d535923ef --- /dev/null +++ b/Build/source/texk/web2c/xetexdir/XeTeXOTMath.h @@ -0,0 +1,62 @@ +/****************************************************************************\ + 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. +\****************************************************************************/ + +#ifndef __XETEX_OT_MATH__ +#define __XETEX_OT_MATH__ + +#include "MathTable.h" + +#include "LEFontInstance.h" + +/* public "C" APIs for calling from Web(-to-C) code */ +extern "C" { + int getnativemathsyparam(int f, int n); + int getnativemathexparam(int f, int n); + int getotmathconstant(int f, int n); + int getotmathvariant(int f, int g, int v, int* adv); + void* getotassemblyptr(int f, int g); + int getotmathitalcorr(int f, int g); + int otpartcount(const GlyphAssembly* a); + int otpartglyph(const GlyphAssembly* a, int i); + int otpartisextender(const GlyphAssembly* a, int i); + int otpartstartconnector(int f, const GlyphAssembly* a, int i); + int otpartendconnector(int f, const GlyphAssembly* a, int i); + int otpartfulladvance(int f, const GlyphAssembly* a, int i); + int otminconnectoroverlap(int f); +}; + + +/* internal functions */ + +/* get a math font constant, scaled according to the font size */ +int getMathConstant(LEFontInstance* fontInst, mathConstantIndex whichConstant); + + +#endif |