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

Comparing rxvt-unicode/src/defaultfont.C (file contents):
Revision 1.47 by pcg, Tue Mar 16 06:04:28 2004 UTC vs.
Revision 1.48 by pcg, Tue Mar 16 11:07:44 2004 UTC

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
1147int 1150int
1148rxvt_fontset::find_font (unicode_t unicode) 1151rxvt_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 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines