… | |
… | |
47 | if (this->name) free (this->name); // let the compiler optimize |
47 | if (this->name) free (this->name); // let the compiler optimize |
48 | this->name = name; |
48 | this->name = name; |
49 | } |
49 | } |
50 | |
50 | |
51 | rxvt_font () { name = 0; } |
51 | rxvt_font () { name = 0; } |
52 | ~rxvt_font () { free (name); clear (); }; |
52 | ~rxvt_font () { clear (); free (name); }; |
53 | |
53 | |
54 | void clear_rect (int x, int y, int w, int h, int color); |
54 | void clear_rect (int x, int y, int w, int h, int color); |
55 | |
55 | |
56 | virtual void clear () { }; |
56 | virtual void clear () { }; |
57 | |
57 | |
… | |
… | |
78 | rxvt_font *new_font (const char *name, codeset cs); |
78 | rxvt_font *new_font (const char *name, codeset cs); |
79 | |
79 | |
80 | void populate (const char *desc); |
80 | void populate (const char *desc); |
81 | int find_font (uint32_t unicode); |
81 | int find_font (uint32_t unicode); |
82 | |
82 | |
83 | rxvt_font *operator [](int id) const |
83 | rxvt_font *operator [] (int id) const |
84 | { |
84 | { |
85 | return fonts[id]; |
85 | return fonts[id]; |
86 | } |
86 | } |
87 | |
87 | |
88 | rxvt_font *base_font () const |
88 | rxvt_font *base_font () const |