| 1 |
{ |
| 2 |
/****************************************************************************\ |
| 3 |
Part of the XeTeX typesetting system |
| 4 |
Copyright (c) 2009-2019 by Jonathan Kew |
| 5 |
Copyright (c) 1994-2008 by SIL International |
| 6 |
|
| 7 |
SIL Author(s): Jonathan Kew |
| 8 |
|
| 9 |
Permission is hereby granted, free of charge, to any person obtaining |
| 10 |
a copy of this software and associated documentation files (the |
| 11 |
"Software"), to deal in the Software without restriction, including |
| 12 |
without limitation the rights to use, copy, modify, merge, publish, |
| 13 |
distribute, sublicense, and/or sell copies of the Software, and to |
| 14 |
permit persons to whom the Software is furnished to do so, subject to |
| 15 |
the following conditions: |
| 16 |
|
| 17 |
The above copyright notice and this permission notice shall be |
| 18 |
included in all copies or substantial portions of the Software. |
| 19 |
|
| 20 |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 21 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 22 |
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 23 |
NONINFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE |
| 24 |
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF |
| 25 |
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
| 26 |
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| 27 |
|
| 28 |
Except as contained in this notice, the name of the copyright holders |
| 29 |
shall not be used in advertising or otherwise to promote the sale, |
| 30 |
use or other dealings in this Software without prior written |
| 31 |
authorization 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 procedure checkfortfmfontmapping; |
| 68 |
@define function loadtfmfontmapping; |
| 69 |
@define function applytfmfontmapping(); |
| 70 |
|
| 71 |
@define procedure initGraphiteBreaking(); |
| 72 |
@define function findNextGraphiteBreak(); |
| 73 |
@define function usingOpenType(); |
| 74 |
@define function usingGraphite(); |
| 75 |
@define procedure grprintfontname(); |
| 76 |
@define function grfontgetnamed(); |
| 77 |
@define function grfontgetnamed1(); |
| 78 |
@define function isOpenTypeMathFont(); |
| 79 |
|
| 80 |
@define function strerror(); |
| 81 |
@define procedure memcpy(); |
| 82 |
@define function glyphinfobyte(); |
| 83 |
@define function casttoushort(); |
| 84 |
|
| 85 |
@define function aatfontget(); |
| 86 |
@define function aatfontget1(); |
| 87 |
@define function aatfontget2(); |
| 88 |
@define function aatfontgetnamed(); |
| 89 |
@define function aatfontgetnamed1(); |
| 90 |
@define procedure aatprintfontname(); |
| 91 |
@define function otfontget(); |
| 92 |
@define function otfontget1(); |
| 93 |
@define function otfontget2(); |
| 94 |
@define function otfontget3(); |
| 95 |
@define function mapchartoglyph(); |
| 96 |
@define function mapglyphtoindex(); |
| 97 |
@define function getglyphbounds(); |
| 98 |
@define procedure getnativecharheightdepth(); |
| 99 |
@define procedure getnativecharsidebearings(); |
| 100 |
@define function getnativeitaliccorrection(); |
| 101 |
@define function getnativeglyphitaliccorrection(); |
| 102 |
@define procedure printglyphname(); |
| 103 |
@define function getfontcharrange(); |
| 104 |
|
| 105 |
@define function getnativecharwd(); |
| 106 |
@define function getnativecharht(); |
| 107 |
@define function getnativechardp(); |
| 108 |
@define function getnativecharic(); |
| 109 |
|
| 110 |
@define function getnativemathsyparam(); |
| 111 |
@define function getnativemathexparam(); |
| 112 |
@define function getotmathconstant(); |
| 113 |
@define function getotmathvariant(); |
| 114 |
@define function getotassemblyptr(); |
| 115 |
@define procedure freeotassembly(); |
| 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 |
|
| 181 |
@define procedure initstarttime; |
| 182 |
@define procedure getcreationdate; |
| 183 |
@define procedure getfilemoddate(); |
| 184 |
@define procedure getfilesize(); |
| 185 |
@define procedure getfiledump(); |
| 186 |
@define procedure getmd5sum(); |