1 | /* |
1 | /* |
2 | * $Id: defaultfont.h,v 1.1 2003/11/24 17:28:08 pcg Exp $ |
2 | * $Id: defaultfont.h,v 1.4 2003/11/25 11:52:42 pcg Exp $ |
3 | */ |
3 | */ |
4 | |
4 | |
5 | #ifndef _DEFAULTFONT_H_ |
5 | #ifndef _DEFAULTFONT_H_ |
6 | #define _DEFAULTFONT_H_ |
6 | #define _DEFAULTFONT_H_ |
7 | |
7 | |
… | |
… | |
21 | #include "rxvtlib.h" |
21 | #include "rxvtlib.h" |
22 | #include "feature.h" |
22 | #include "feature.h" |
23 | #include "encoding.h" |
23 | #include "encoding.h" |
24 | #include "rxvtvec.h" |
24 | #include "rxvtvec.h" |
25 | |
25 | |
26 | #include "defaultfont.intpro" /* PROTOS for internal routines */ |
|
|
27 | |
|
|
28 | typedef struct rxvt_vars rxvt_t; |
|
|
29 | |
|
|
30 | struct rxvt_font { |
26 | struct rxvt_font { |
31 | // managed by the fontset |
27 | // managed by the fontset |
32 | #if EXPLICIT_CONTEXT |
28 | #if EXPLICIT_CONTEXT |
33 | rxvt_t *rxvt_term; |
29 | rxvt_t rxvt_term; |
34 | void set_term (pR) { this->rxvt_term = R; } |
30 | void set_term (pR) { this->rxvt_term = R; } |
35 | #else |
31 | #else |
36 | void set_term (pR) { } |
32 | void set_term (pR) { } |
37 | #endif |
33 | #endif |
38 | char *name; |
34 | char *name; |
… | |
… | |
90 | return fonts[base_id]; |
86 | return fonts[base_id]; |
91 | } |
87 | } |
92 | |
88 | |
93 | private: |
89 | private: |
94 | #ifdef EXPLICIT_CONTEXT |
90 | #ifdef EXPLICIT_CONTEXT |
95 | rxvt_t *rxvt_term; |
91 | rxvt_t rxvt_term; |
96 | #endif |
92 | #endif |
97 | simplevec<rxvt_font *> fonts; |
93 | simplevec<rxvt_font *> fonts; |
98 | const rxvt_fallback_font *fallback; |
94 | const rxvt_fallback_font *fallback; |
99 | |
95 | |
100 | int height; |
96 | int height; |