13da084b3Smrg/*
23da084b3SmrgCopyright (c) 1998-2001 by Juliusz Chroboczek
33da084b3Smrg
43da084b3SmrgPermission is hereby granted, free of charge, to any person obtaining a copy
53da084b3Smrgof this software and associated documentation files (the "Software"), to deal
63da084b3Smrgin the Software without restriction, including without limitation the rights
73da084b3Smrgto use, copy, modify, merge, publish, distribute, sublicense, and/or sell
83da084b3Smrgcopies of the Software, and to permit persons to whom the Software is
93da084b3Smrgfurnished to do so, subject to the following conditions:
103da084b3Smrg
113da084b3SmrgThe above copyright notice and this permission notice shall be included in
123da084b3Smrgall copies or substantial portions of the Software.
133da084b3Smrg
143da084b3SmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
153da084b3SmrgIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
163da084b3SmrgFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
173da084b3SmrgAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
183da084b3SmrgLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
193da084b3SmrgOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
203da084b3SmrgTHE SOFTWARE.
213da084b3Smrg*/
223da084b3Smrg
233da084b3Smrg/* Private types and functions for the encoding code. */
243da084b3Smrg/* Used by the files `fontenc.h' and `encparse.h' */
253da084b3Smrg
263da084b3Smrgtypedef struct _FontEncSimpleMap {
27e1c0d025Smrg    unsigned len;               /* might be 0x10000 */
283da084b3Smrg    unsigned short row_size;
293da084b3Smrg    unsigned short first;
303da084b3Smrg    const unsigned short *map;
313da084b3Smrg} FontEncSimpleMapRec, *FontEncSimpleMapPtr;
323da084b3Smrg
333da084b3Smrgtypedef struct _FontEncSimpleName {
343da084b3Smrg    unsigned len;
353da084b3Smrg    unsigned short first;
363da084b3Smrg    char **map;
373da084b3Smrg} FontEncSimpleNameRec, *FontEncSimpleNamePtr;
383da084b3Smrg
39e1c0d025Smrgunsigned FontEncSimpleRecode(unsigned, void *);
40e1c0d025Smrgunsigned FontEncUndefinedRecode(unsigned, void *);
41e1c0d025Smrgchar *FontEncSimpleName(unsigned, void *);
42e1c0d025Smrgchar *FontEncUndefinedName(unsigned, void *);
433da084b3Smrg
44e1c0d025SmrgFontEncPtr FontEncReallyLoad(const char *, const char *);
45