… | |
… | |
32 | void set_term (rxvt_term *term) { this->term = term; } |
32 | void set_term (rxvt_term *term) { this->term = term; } |
33 | |
33 | |
34 | char *name; |
34 | char *name; |
35 | codeset cs; |
35 | codeset cs; |
36 | bool loaded; // whether we tried loading it before (not whether it's loaded) |
36 | bool loaded; // whether we tried loading it before (not whether it's loaded) |
37 | bool can_compose; // whether the font composes glyphs itself or not, should be a class method, but.. speed.... |
|
|
38 | |
37 | |
39 | // managed by the font object |
38 | // managed by the font object |
40 | int ascent, descent, |
39 | int ascent, descent, |
41 | width, height; |
40 | width, height; |
42 | |
41 | |
… | |
… | |
100 | find_font (unicode_t unicode) |
99 | find_font (unicode_t unicode) |
101 | { |
100 | { |
102 | return min<int> ((fontCount << 1) | 1, find_font_idx (unicode)); |
101 | return min<int> ((fontCount << 1) | 1, find_font_idx (unicode)); |
103 | } |
102 | } |
104 | |
103 | |
|
|
104 | // find the font containing ' ' - we always assume this is font 1, as |
|
|
105 | // every font should contain space, and font 1 is our base font. |
|
|
106 | // pango assumes this, so it must be correct! |
|
|
107 | int |
|
|
108 | find_space_font () |
|
|
109 | { |
|
|
110 | return 1 << 1; |
|
|
111 | } |
|
|
112 | |
105 | private: |
113 | private: |
106 | rxvt_term *term; |
114 | rxvt_term *term; |
107 | rxvt_fontprop prop; |
115 | rxvt_fontprop prop; |
108 | bool force_prop; |
116 | bool force_prop; |
109 | simplevec<rxvt_font *> fonts; |
117 | simplevec<rxvt_font *> fonts; |