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