From: pcg Date: Tue, 16 Mar 2004 11:07:44 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=6f180fc0c2ed717c46aa5f9112fec6030fd07d52;p=dana%2Furxvt.git *** empty log message *** --- diff --git a/src/defaultfont.C b/src/defaultfont.C index 87b8d33e..e10f7b20 100644 --- a/src/defaultfont.C +++ b/src/defaultfont.C @@ -232,7 +232,10 @@ struct rxvt_font_default : rxvt_font { if (unicode <= 0x001f) return true; - if (unicode >= 0x0080 && unicode <= 0x009f) + if (unicode <= 0x007f) + return false; + + if (unicode <= 0x009f) return true; if (unicode >= 0x2500 && unicode <= 0x259f) @@ -1147,7 +1150,9 @@ rxvt_fontset::populate (const char *desc) int rxvt_fontset::find_font (unicode_t unicode) { - for (unsigned int i = 0; i < fonts.size (); i++) + for (unsigned int i = !!(0x20 <= unicode && unicode <= 0x7f); // skip pseudo-font for ascii + i < fonts.size (); + i++) { rxvt_font *f = fonts[i];