1{
2/****************************************************************************\
3 Part of the XeTeX typesetting system
4 Copyright (c) 1994-2008 by SIL International
5 Copyright (c) 2009 by Jonathan Kew
6
7 SIL Author(s): Jonathan Kew
8
9Permission is hereby granted, free of charge, to any person obtaining
10a copy of this software and associated documentation files (the
11"Software"), to deal in the Software without restriction, including
12without limitation the rights to use, copy, modify, merge, publish,
13distribute, sublicense, and/or sell copies of the Software, and to
14permit persons to whom the Software is furnished to do so, subject to
15the following conditions:
16
17The above copyright notice and this permission notice shall be
18included in all copies or substantial portions of the Software.
19
20THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23NONINFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE
24FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
25CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27
28Except as contained in this notice, the name of the copyright holders
29shall not be used in advertising or otherwise to promote the sale,
30use or other dealings in this Software without prior written
31authorization from the copyright holders.
32\****************************************************************************/
33}
34
35{ xetex.defines: additions for xetex }
36
37@define @field ptr;
38@define const nullptr;
39@define type voidpointer;
40@define function getnativechar();
41@define function getnativeusv();
42@define procedure setnativechar();
43@define function getnativeglyph();
44@define procedure setnativemetrics();
45@define procedure setjustifiednativeglyphs();
46@define procedure setnativeglyphmetrics();
47@define function findnativefont();
48@define procedure releasefontengine();
49@define function sizeof();
50@define function makefontdef();
51@define function makexdvglypharraydata();
52@define function xdvbufferbyte();
53@define procedure fprintf();
54@define type unicodefile;
55@define function uopenin();
56@define function uopenout();
57@define procedure uclose();
58@define function dviopenout();
59@define function dviclose();
60@define function delcode1();
61@define procedure setdelcode1();
62@define function readcint1();
63@define procedure setcint1();
64@define procedure printutf8str();
65@define procedure setinputfileencoding();
66@define procedure terminatefontmanager;
67@define type gzFile;
68@define procedure checkfortfmfontmapping;
69@define function loadtfmfontmapping;
70@define function applytfmfontmapping();
71
72@define procedure initGraphiteBreaking();
73@define function findNextGraphiteBreak();
74@define function usingOpenType();
75@define function usingGraphite();
76@define procedure grprintfontname();
77@define function grfontgetnamed();
78@define function grfontgetnamed1();
79@define function isOpenTypeMathFont();
80
81@define function strerror();
82@define procedure memcpy();
83@define function glyphinfobyte();
84@define function casttoushort();
85
86@define function aatfontget();
87@define function aatfontget1();
88@define function aatfontget2();
89@define function aatfontgetnamed();
90@define function aatfontgetnamed1();
91@define procedure aatprintfontname();
92@define function otfontget();
93@define function otfontget1();
94@define function otfontget2();
95@define function otfontget3();
96@define function mapchartoglyph();
97@define function mapglyphtoindex();
98@define function getglyphbounds();
99@define procedure getnativecharheightdepth();
100@define procedure getnativecharsidebearings();
101@define function getnativeitaliccorrection();
102@define function getnativeglyphitaliccorrection();
103@define procedure printglyphname();
104@define function getfontcharrange();
105
106@define function getnativecharwd();
107@define function getnativecharht();
108@define function getnativechardp();
109@define function getnativecharic();
110
111@define function getnativemathsyparam();
112@define function getnativemathexparam();
113@define function getotmathconstant();
114@define function getotmathvariant();
115@define function getotassemblyptr();
116@define function getotmathitalcorr();
117@define function getotmathaccentpos();
118@define function getotmathkern();
119
120@define function otpartcount();
121@define function otpartglyph();
122@define function otpartstartconnector();
123@define function otpartendconnector();
124@define function otpartfulladvance();
125@define function otpartisextender();
126@define function otminconnectoroverlap();
127
128@define function setfamilyfield();
129@define function setclassfield();
130@define function mathfamfield();
131@define function mathclassfield();
132@define function mathcharfield();
133
134@define procedure aatgetfontmetrics();
135@define procedure otgetfontmetrics();
136
137@define function getencodingmodeandinfo();
138
139@define procedure linebreakstart();
140@define function linebreaknext;
141
142{ extra stuff used in picfile code }
143@define type realpoint;
144@define type realrect;
145@define type transform;
146
147@define function deref();
148
149@define function D2Fix();
150@define function Fix2D();
151
152@define function findpicfile();
153@define function picpathbyte();
154@define function countpdffilepages;
155
156@define procedure makeidentity();
157@define procedure makescale();
158@define procedure maketranslation();
159@define procedure makerotation();
160@define procedure transformpoint();
161@define procedure transformconcat();
162
163@define procedure setPoint();
164
165@define function xCoord();
166@define function yCoord();
167@define function aField();
168@define function bField();
169@define function cField();
170@define function dField();
171@define function xField();
172@define function yField();
173@define function wdField();
174@define function htField();
175@define function applymapping();
176
177@define procedure setcpcode();
178@define function getcpcode();
179@define function getnativewordcp();
180