]> asedeno.scripts.mit.edu Git - 1ts-debian.git/blob - zephyr/zwgc/X_fonts.h
r4264@bucket (orig r254): kcr | 2008-01-20 22:11:44 -0500
[1ts-debian.git] / zephyr / zwgc / X_fonts.h
1 #ifndef x_fonts_MODULE
2 #define x_fonts_MODULE
3
4 /* This file is part of the Project Athena Zephyr Notification System.
5  * It is one of the source files comprising zwgc, the Zephyr WindowGram
6  * client.
7  *
8  *      Created by:     Marc Horowitz <marc@athena.mit.edu>
9  *
10  *      $Id$
11  *
12  *      Copyright (c) 1989 by the Massachusetts Institute of Technology.
13  *      For copying and distribution information, see the file
14  *      "mit-copyright.h".
15  */
16
17
18 #include <zephyr/mit-copyright.h>
19
20 #include "X_driver.h"
21
22 #define  SPECIAL_FACE     -1
23 #define  ROMAN_FACE        0
24 #define  BOLD_FACE         1
25 #define  ITALIC_FACE       2
26 #define  BOLD_ITALIC_FACE  3
27
28 #define  SPECIAL_SIZE     -1
29 #define  SMALL_SIZE        0
30 #define  MEDIUM_SIZE       1
31 #define  LARGE_SIZE        2
32
33 /*
34  *    XFontStruct *get_font(string family; int size, face)
35  *         Requires: size is one of SMALL_SIZE, MEDIUM_SIZE, LARGE_SIZE and
36  *                   face is one of ROMAN_FACE, BOLD_FACE, ITALIC_FACE,
37  *                   BOLDITALIC_FACE.
38  *         Effects: Looks up the font specified by the above in the
39  *                  X resources.  If that font is not specified by in
40  *                  the X resources or it can't be loaded, the font
41  *                  specified by default.medium.roman is used. <<<>>>
42  */
43
44 extern XFontStruct *get_font(Display *, string, string, int, int);
45 extern XFontStruct *get_fontst_from_fid(Font);
46
47 #endif