… | |
… | |
230 | bool has_codepoint (unicode_t unicode) |
230 | bool has_codepoint (unicode_t unicode) |
231 | { |
231 | { |
232 | if (unicode <= 0x001f) |
232 | if (unicode <= 0x001f) |
233 | return true; |
233 | return true; |
234 | |
234 | |
235 | if (unicode >= 0x0080 && unicode <= 0x009f) |
235 | if (unicode <= 0x007f) |
|
|
236 | return false; |
|
|
237 | |
|
|
238 | if (unicode <= 0x009f) |
236 | return true; |
239 | return true; |
237 | |
240 | |
238 | if (unicode >= 0x2500 && unicode <= 0x259f) |
241 | if (unicode >= 0x2500 && unicode <= 0x259f) |
239 | return true; |
242 | return true; |
240 | |
243 | |
… | |
… | |
1145 | } |
1148 | } |
1146 | |
1149 | |
1147 | int |
1150 | int |
1148 | rxvt_fontset::find_font (unicode_t unicode) |
1151 | rxvt_fontset::find_font (unicode_t unicode) |
1149 | { |
1152 | { |
1150 | for (unsigned int i = 0; i < fonts.size (); i++) |
1153 | for (unsigned int i = !!(0x20 <= unicode && unicode <= 0x7f); // skip pseudo-font for ascii |
|
|
1154 | i < fonts.size (); |
|
|
1155 | i++) |
1151 | { |
1156 | { |
1152 | rxvt_font *f = fonts[i]; |
1157 | rxvt_font *f = fonts[i]; |
1153 | |
1158 | |
1154 | if (!f->loaded) |
1159 | if (!f->loaded) |
1155 | { |
1160 | { |