ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvtfont.h
(Generate patch)

Comparing rxvt-unicode/src/rxvtfont.h (file contents):
Revision 1.43 by sf-exg, Tue Jun 21 12:03:56 2016 UTC vs.
Revision 1.45 by root, Thu Jun 17 11:01:57 2021 UTC

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
104private: 114private:
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;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines