ARB
aw_xfont.hxx
Go to the documentation of this file.
1 #ifndef AW_XFONT_HXX
2 #define AW_XFONT_HXX
3 
4 #ifndef AW_DEF_HXX
5 #include "aw_def.hxx"
6 #endif
7 #ifndef AW_COMMON_XM_HXX
8 #include "aw_common_xm.hxx"
9 #endif
10 
11 
12 struct xfont {
13  int size; // size in points
14  Font fid; // X font id
15  char *fname; // actual name of X font found
16  XFontStruct *fstruct; // X font structure
17  xfont *next; // next in the list
18 };
19 
20 struct _fstruct {
21  const char *name; // Postscript font name
22  int xfontnum; // template for locating X fonts
23 };
24 
25 struct _xfstruct {
26  const char *templat; // templat for locating X fonts
27  const char *description; // short name (displayed on font button)
28  xfont *xfontlist; // linked list of X fonts for different point sizes
29 };
30 
31 const char *AW_get_font_specification(AW_font font_nr, bool& found);
32 const char *AW_get_font_shortname(AW_font font_nr);
33 
34 int AW_font_2_xfig(AW_font font_nr);
35 
36 #else
37 #error aw_xfont.hxx included twice
38 #endif
int AW_font
Definition: aw_base.hxx:42
int AW_font_2_xfig(AW_font font_nr)
Definition: AW_xfont.cxx:726
const char * name
Definition: aw_xfont.hxx:21
Font fid
Definition: aw_xfont.hxx:14
int xfontnum
Definition: aw_xfont.hxx:22
const char * templat
Definition: aw_xfont.hxx:26
int size
Definition: aw_xfont.hxx:13
const char * AW_get_font_specification(AW_font font_nr, bool &found)
Definition: AW_xfont.cxx:668
const char * description
Definition: aw_xfont.hxx:27
const char * AW_get_font_shortname(AW_font font_nr)
Definition: AW_xfont.cxx:721
char * fname
Definition: aw_xfont.hxx:15
xfont * next
Definition: aw_xfont.hxx:17
XFontStruct * fstruct
Definition: aw_xfont.hxx:16
xfont * xfontlist
Definition: aw_xfont.hxx:28