fontencI.h revision 3da084b3
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/* $XFree86: xc/lib/font/fontfile/fontencI.h,v 1.3 1999/04/25 10:01:43 dawes Exp $ */
243da084b3Smrg
253da084b3Smrg/* Private types and functions for the encoding code. */
263da084b3Smrg/* Used by the files `fontenc.h' and `encparse.h' */
273da084b3Smrg
283da084b3Smrgtypedef struct _FontEncSimpleMap {
293da084b3Smrg    unsigned len;                 /* might be 0x10000 */
303da084b3Smrg    unsigned short row_size;
313da084b3Smrg    unsigned short first;
323da084b3Smrg    const unsigned short *map;
333da084b3Smrg} FontEncSimpleMapRec, *FontEncSimpleMapPtr;
343da084b3Smrg
353da084b3Smrgtypedef struct _FontEncSimpleName {
363da084b3Smrg    unsigned len;
373da084b3Smrg    unsigned short first;
383da084b3Smrg    char **map;
393da084b3Smrg} FontEncSimpleNameRec, *FontEncSimpleNamePtr;
403da084b3Smrg
413da084b3Smrgunsigned FontEncSimpleRecode(unsigned, void*);
423da084b3Smrgunsigned FontEncUndefinedRecode(unsigned, void*);
433da084b3Smrgchar *FontEncSimpleName(unsigned, void*);
443da084b3Smrgchar *FontEncUndefinedName(unsigned, void*);
453da084b3Smrg
463da084b3SmrgFontEncPtr FontEncReallyLoad(const char*, const char*);
47