… | |
… | |
70 | |
70 | |
71 | struct rxvt_fontset |
71 | struct rxvt_fontset |
72 | { |
72 | { |
73 | char *fontdesc; |
73 | char *fontdesc; |
74 | |
74 | |
75 | enum { fontCount = 7 }; // must be power-of-two - 1, also has to match RS_fontMask in rxvt.h |
75 | // must be power-of-two - 1, also has to match RS_fontMask in rxvt.h |
76 | enum { firstFont = 2 }; // index of first font in set |
76 | #if USE_256_COLORS |
|
|
77 | enum { fontCount = 7 }; // 4 extra colors bits, 4 fewer fontcount bits |
|
|
78 | #else |
|
|
79 | enum { fontCount = 127 }; |
|
|
80 | #endif |
|
|
81 | |
|
|
82 | // index of first font in set |
|
|
83 | enum { firstFont = 2 }; |
77 | |
84 | |
78 | rxvt_fontset (rxvt_term *term); |
85 | rxvt_fontset (rxvt_term *term); |
79 | ~rxvt_fontset (); |
86 | ~rxvt_fontset (); |
80 | |
87 | |
81 | bool populate (const char *desc); |
88 | bool populate (const char *desc); |