1 | /* $XFree86: xc/include/fonts/fontproto.h,v 1.2 1999/09/04 09:14:08 dawes Exp $ */
|
---|
2 |
|
---|
3 | /***********************************************************
|
---|
4 |
|
---|
5 | Copyright (c) 1999 The XFree86 Project Inc.
|
---|
6 |
|
---|
7 | All Rights Reserved.
|
---|
8 |
|
---|
9 | The above copyright notice and this permission notice shall be included in
|
---|
10 | all copies or substantial portions of the Software.
|
---|
11 |
|
---|
12 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
---|
13 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
---|
14 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
---|
15 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
---|
16 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
---|
17 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
---|
18 |
|
---|
19 | Except as contained in this notice, the name of The XFree86 Project
|
---|
20 | Inc. shall not be used in advertising or otherwise to promote the
|
---|
21 | sale, use or other dealings in this Software without prior written
|
---|
22 | authorization from The XFree86 Project Inc..
|
---|
23 |
|
---|
24 | */
|
---|
25 | #ifndef _FONTPROTO_H
|
---|
26 | #define _FONTPROTO_H
|
---|
27 |
|
---|
28 | /* Externally provided functions required by libXfont */
|
---|
29 |
|
---|
30 | extern int RegisterFPEFunctions ( NameCheckFunc name_func,
|
---|
31 | InitFpeFunc init_func,
|
---|
32 | FreeFpeFunc free_func,
|
---|
33 | ResetFpeFunc reset_func,
|
---|
34 | OpenFontFunc open_func,
|
---|
35 | CloseFontFunc close_func,
|
---|
36 | ListFontsFunc list_func,
|
---|
37 | StartLfwiFunc start_lfwi_func,
|
---|
38 | NextLfwiFunc next_lfwi_func,
|
---|
39 | WakeupFpeFunc wakeup_func,
|
---|
40 | ClientDiedFunc client_died,
|
---|
41 | LoadGlyphsFunc load_glyphs,
|
---|
42 | StartLaFunc start_list_alias_func,
|
---|
43 | NextLaFunc next_list_alias_func,
|
---|
44 | SetPathFunc set_path_func);
|
---|
45 |
|
---|
46 | extern int GetDefaultPointSize ( void );
|
---|
47 |
|
---|
48 | extern int init_fs_handlers ( FontPathElementPtr fpe,
|
---|
49 | BlockHandlerProcPtr block_handler);
|
---|
50 | extern void remove_fs_handlers ( FontPathElementPtr fpe,
|
---|
51 | BlockHandlerProcPtr block_handler,
|
---|
52 | Bool all );
|
---|
53 |
|
---|
54 | extern int client_auth_generation ( ClientPtr client );
|
---|
55 |
|
---|
56 | #ifndef ___CLIENTSIGNAL_DEFINED___
|
---|
57 | #define ___CLIENTSIGNAL_DEFINED___
|
---|
58 | extern Bool ClientSignal ( ClientPtr client );
|
---|
59 | #endif /* ___CLIENTSIGNAL_DEFINED___ */
|
---|
60 |
|
---|
61 | extern void DeleteFontClientID ( Font id );
|
---|
62 | extern Font GetNewFontClientID ( void );
|
---|
63 | extern int StoreFontClientFont ( FontPtr pfont, Font id );
|
---|
64 | extern void FontFileRegisterFpeFunctions ( void );
|
---|
65 | extern void FontFileCheckRegisterFpeFunctions ( void );
|
---|
66 |
|
---|
67 | extern Bool XpClientIsBitmapClient ( ClientPtr client );
|
---|
68 | extern Bool XpClientIsPrintClient( ClientPtr client, FontPathElementPtr fpe );
|
---|
69 | extern void PrinterFontRegisterFpeFunctions ( void );
|
---|
70 |
|
---|
71 | extern void fs_register_fpe_functions ( void );
|
---|
72 | extern void check_fs_register_fpe_functions ( void );
|
---|
73 |
|
---|
74 | /* util/private.c */
|
---|
75 | extern FontPtr CreateFontRec (void);
|
---|
76 | extern void DestroyFontRec (FontPtr font);
|
---|
77 | extern Bool _FontSetNewPrivate (FontPtr /* pFont */,
|
---|
78 | int /* n */,
|
---|
79 | pointer /* ptr */);
|
---|
80 | extern int AllocateFontPrivateIndex (void);
|
---|
81 | extern void ResetFontPrivateIndex (void);
|
---|
82 |
|
---|
83 | /* Type1/t1funcs.c */
|
---|
84 | extern void Type1RegisterFontFileFunctions(void);
|
---|
85 | extern void CIDRegisterFontFileFunctions(void);
|
---|
86 |
|
---|
87 | /* Speedo/spfuncs.c */
|
---|
88 | extern void SpeedoRegisterFontFileFunctions(void);
|
---|
89 |
|
---|
90 | /* FreeType/ftfuncs.c */
|
---|
91 | extern void FreeTypeRegisterFontFileFunctions(void);
|
---|
92 |
|
---|
93 | #endif
|
---|