root/foundation-apps/mxterm-maxx/fontutils.h

Revision 8, 3.9 KB (checked in by emasson, 3 years ago)

initial import for the community edition

Line 
1/* $XTermId: fontutils.h,v 1.67 2008/01/20 15:39:56 tom Exp $ */
2
3/************************************************************
4
5Copyright 1998-2007,2008 by Thomas E. Dickey
6
7                        All Rights Reserved
8
9Permission is hereby granted, free of charge, to any person obtaining a
10copy of this software and associated documentation files (the
11"Software"), to deal in the Software without restriction, including
12without limitation the rights to use, copy, modify, merge, publish,
13distribute, sublicense, and/or sell copies of the Software, and to
14permit persons to whom the Software is furnished to do so, subject to
15the following conditions:
16
17The above copyright notice and this permission notice shall be included
18in all copies or substantial portions of the Software.
19
20THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
21OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
24CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
25TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
26SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27
28Except as contained in this notice, the name(s) of the above copyright
29holders shall not be used in advertising or otherwise to promote the
30sale, use or other dealings in this Software without prior written
31authorization.
32
33********************************************************/
34
35#ifndef included_fontutils_h
36#define included_fontutils_h 1
37
38#include <xterm.h>
39
40extern Bool xtermLoadDefaultFonts (XtermWidget /* xw */);
41extern Bool xtermOpenFont (XtermWidget /* xw */, char */* name */, XTermFonts * /* result */);
42extern XTermFonts * xtermCloseFont (XtermWidget /* xw */, XTermFonts * /* fnt */);
43extern const VTFontNames * xtermFontName (char */* normal */);
44extern int lookupRelativeFontSize (XtermWidget /* xw */, int /* old */, int /* relative */);
45extern int xtermGetFont(const char * /* param */);
46extern int xtermLoadFont (XtermWidget /* xw */,
47                          const VTFontNames */* fonts */,
48                          Bool /* doresize */, int /* fontnum */);
49extern void HandleSetFont PROTO_XT_ACTIONS_ARGS;
50extern void SetVTFont (XtermWidget /* xw */, int /* i */, Bool /* doresize */, const VTFontNames */* fonts */);
51extern void xtermCloseFonts (XtermWidget /* xw */, XTermFonts * /* fnts[fMAX] */);
52extern void xtermComputeFontInfo (XtermWidget /* xw */, VTwin */* win */, XFontStruct */* font */, int /* sbwidth */);
53extern void xtermCopyFontInfo (XTermFonts * /* target */, XTermFonts * /* source */);
54extern void xtermFreeFontInfo (XTermFonts * /* target */);
55extern void xtermSaveFontInfo (TScreen * /* screen */, XFontStruct */* font */);
56extern void xtermSetCursorBox (TScreen * /* screen */);
57extern void xtermUpdateFontInfo (XtermWidget /* xw */, Bool /* doresize */);
58
59#if OPT_DEC_CHRSET
60extern char *xtermSpecialFont (TScreen */* screen */, unsigned /* atts */, unsigned /* chrset */);
61#endif
62
63#if OPT_BOX_CHARS
64extern Bool xtermMissingChar (XtermWidget /* xw */, unsigned /* ch */, XFontStruct */* font */);
65extern void xtermDrawBoxChar (XtermWidget /* xw */, unsigned /* ch */, unsigned /* flags */, GC /* gc */, int /* x */, int /* y */, int /* cols */);
66#endif
67
68#if OPT_LOAD_VTFONTS
69extern void HandleLoadVTFonts PROTO_XT_ACTIONS_ARGS;
70#endif
71
72#if OPT_LOAD_VTFONTS || OPT_WIDE_CHARS
73extern Bool xtermLoadWideFonts (XtermWidget /* w */, Bool /* nullOk */);
74#endif
75
76#define xtermIsDecGraphic(ch)   ((ch) > 0 && (ch) < 32)
77
78#if OPT_RENDERFONT
79extern Bool xtermXftMissing (XtermWidget /* xw */, XftFont * /* font */, unsigned /* wc */);
80#endif
81
82#if OPT_SHIFT_FONTS
83extern void HandleSmallerFont PROTO_XT_ACTIONS_ARGS;
84extern void HandleLargerFont PROTO_XT_ACTIONS_ARGS;
85#endif
86
87#if OPT_WIDE_CHARS
88extern unsigned ucs2dec (unsigned);
89extern unsigned dec2ucs (unsigned);
90#endif
91
92#endif /* included_fontutils_h */
Note: See TracBrowser for help on using the browser.