… | |
… | |
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.... |
37 | |
38 | |
38 | // managed by the font object |
39 | // managed by the font object |
39 | int ascent, descent, |
40 | int ascent, descent, |
40 | width, height; |
41 | width, height; |
41 | |
42 | |
… | |
… | |
99 | find_font (unicode_t unicode) |
100 | find_font (unicode_t unicode) |
100 | { |
101 | { |
101 | return min<int> ((fontCount << 1) | 1, find_font_idx (unicode)); |
102 | return min<int> ((fontCount << 1) | 1, find_font_idx (unicode)); |
102 | } |
103 | } |
103 | |
104 | |
|
|
105 | // find the font containing ' ' - we always assume this is font 1, as |
|
|
106 | // every font should contain space, and font 1 is our base font. |
|
|
107 | // pango assumes this, so it must be correct! |
|
|
108 | int |
|
|
109 | find_space_font () |
|
|
110 | { |
|
|
111 | return 1 << 1; |
|
|
112 | } |
|
|
113 | |
104 | private: |
114 | private: |
105 | rxvt_term *term; |
115 | rxvt_term *term; |
106 | rxvt_fontprop prop; |
116 | rxvt_fontprop prop; |
107 | bool force_prop; |
117 | bool force_prop; |
108 | simplevec<rxvt_font *> fonts; |
118 | simplevec<rxvt_font *> fonts; |