]> git.sesse.net Git - rdpsrv/blob - Xserver/lib/font/include/fntfil.h
Import X server from vnc-3.3.7.
[rdpsrv] / Xserver / lib / font / include / fntfil.h
1 /* $XConsortium: fntfil.h,v 1.5 94/04/17 20:17:28 gildea Exp $ */
2
3 /*
4
5 Copyright (c) 1991  X Consortium
6
7 Permission is hereby granted, free of charge, to any person obtaining a copy
8 of this software and associated documentation files (the "Software"), to deal
9 in the Software without restriction, including without limitation the rights
10 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 copies of the Software, and to permit persons to whom the Software is
12 furnished to do so, subject to the following conditions:
13
14 The above copyright notice and this permission notice shall be included in
15 all copies or substantial portions of the Software.
16
17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
20 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
21 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
24 Except as contained in this notice, the name of the X Consortium shall not be
25 used in advertising or otherwise to promote the sale, use or other dealings
26 in this Software without prior written authorization from the X Consortium.
27
28 */
29
30 /*
31  * Author:  Keith Packard, MIT X Consortium
32  */
33
34 #ifndef _FONTFILE_H_
35 #define _FONTFILE_H_
36 typedef struct _FontEntry           *FontEntryPtr;
37 typedef struct _FontTable           *FontTablePtr;
38 typedef struct _FontName            *FontNamePtr;
39 typedef struct _FontScaled          *FontScaledPtr;
40 typedef struct _FontScalableExtra   *FontScalableExtraPtr;
41 typedef struct _FontScalableEntry   *FontScalableEntryPtr;
42 typedef struct _FontScaleAliasEntry *FontScaleAliasEntryPtr;
43 typedef struct _FontBitmapEntry     *FontBitmapEntryPtr;
44 typedef struct _FontAliasEntry      *FontAliasEntryPtr;
45 typedef struct _FontBCEntry         *FontBCEntryPtr;
46 typedef struct _FontDirectory       *FontDirectoryPtr;
47 typedef struct _FontRenderer        *FontRendererPtr;
48
49 #define NullFontEntry               ((FontEntryPtr) 0)
50 #define NullFontTable               ((FontTablePtr) 0)
51 #define NullFontName                ((FontNamePtr) 0)
52 #define NullFontScaled              ((FontScaled) 0)
53 #define NullFontScalableExtra       ((FontScalableExtra) 0)
54 #define NullFontscalableEntry       ((FontScalableEntry) 0)
55 #define NullFontScaleAliasEntry     ((FontScaleAliasEntry) 0)
56 #define NullFontBitmapEntry         ((FontBitmapEntry) 0)
57 #define NullFontAliasEntry          ((FontAliasEntry) 0)
58 #define NullFontBCEntry             ((FontBCEntry) 0)
59 #define NullFontDirectory           ((FontDirectoryPtr) 0)
60 #define NullFontRenderer            ((FontRendererPtr) 0)
61
62 #define FONT_ENTRY_SCALABLE     0
63 #define FONT_ENTRY_SCALE_ALIAS  1
64 #define FONT_ENTRY_BITMAP       2
65 #define FONT_ENTRY_ALIAS        3
66 #define FONT_ENTRY_BC           4
67
68 #define MAXFONTNAMELEN      1024
69 #define MAXFONTFILENAMELEN  1024
70
71 #define FontDirFile         "fonts.dir"
72 #define FontAliasFile       "fonts.alias"
73 #define FontScalableFile    "fonts.scale"
74
75 extern FontEntryPtr     FontFileFindNameInDir ();
76 extern FontEntryPtr     FontFileFindNameInScalableDir ();
77 extern FontDirectoryPtr FontFileMakeDir ();
78 extern FontRendererPtr  FontFileMatchRenderer ();
79 extern char             *FontFileSaveString ();
80 extern FontScaledPtr    FontFileFindScaledInstance ();
81 #endif /* _FONTFILE_H_ */