source: trunk/WINDOW/aw_xfont.hxx

Last change on this file was 15235, checked in by westram, 8 years ago
  • reorder font-selection list (found fonts at top)
  • fix failures when selecting 'no font'
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.0 KB
Line 
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
12struct 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
20struct _fstruct {
21    const char     *name;       // Postscript font name
22    int             xfontnum;   // template for locating X fonts
23};
24
25struct _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
31const char *AW_get_font_specification(AW_font font_nr, bool& found);
32const char *AW_get_font_shortname(AW_font font_nr);
33
34int AW_font_2_xfig(AW_font font_nr);
35
36#else
37#error aw_xfont.hxx included twice
38#endif
Note: See TracBrowser for help on using the repository browser.