2
* $XFree86: xc/programs/xterm/fontutils.h,v 1.10 2000/12/30 19:15:46 dickey Exp $
5
/************************************************************
7
Copyright 1998,1999,2000 by Thomas E. Dickey
11
Permission is hereby granted, free of charge, to any person obtaining a
12
copy of this software and associated documentation files (the
13
"Software"), to deal in the Software without restriction, including
14
without limitation the rights to use, copy, modify, merge, publish,
15
distribute, sublicense, and/or sell copies of the Software, and to
16
permit persons to whom the Software is furnished to do so, subject to
17
the following conditions:
19
The above copyright notice and this permission notice shall be included
20
in all copies or substantial portions of the Software.
22
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
23
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
25
IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
26
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
27
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
28
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30
Except as contained in this notice, the name(s) of the above copyright
31
holders shall not be used in advertising or otherwise to promote the
32
sale, use or other dealings in this Software without prior written
35
********************************************************/
37
#ifndef included_fontutils_h
38
#define included_fontutils_h 1
44
#define VT_FONTSET(n,b,w,wb) n, b, w, wb
46
#define VT_FONTSET(n,b,w,wb) n, b
49
extern int xtermLoadFont (TScreen *screen,
50
VT_FONTSET(char *nfontname, char *bfontname, char *wfontname, char *wbfontname),
51
Bool doresize, int fontnum);
52
extern void HandleSetFont PROTO_XT_ACTIONS_ARGS;
53
extern void SetVTFont (int i, Bool doresize, VT_FONTSET(char *name1, char *name2, char *name3, char *name4));
54
extern void xtermComputeFontInfo (TScreen *screen, struct _vtwin *win, XFontStruct *font, int sbwidth);
55
extern void xtermSaveFontInfo (TScreen *screen, XFontStruct *font);
56
extern void xtermSetCursorBox (TScreen *screen);
57
extern void xtermUpdateFontInfo (TScreen *screen, Bool doresize);
60
extern char *xtermSpecialFont(unsigned atts, unsigned chrset);
64
extern Bool xtermMissingChar(unsigned ch, XFontStruct *font);
65
extern void xtermDrawBoxChar(TScreen *screen, int ch, unsigned flags, GC gc, int x, int y);
69
extern void HandleSmallerFont PROTO_XT_ACTIONS_ARGS;
70
extern void HandleLargerFont PROTO_XT_ACTIONS_ARGS;
73
#endif /* included_fontutils_h */