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

Comparing rxvt-unicode/src/rxvtfont.C (file contents):
Revision 1.183 by root, Tue Jan 17 20:27:41 2012 UTC vs.
Revision 1.184 by root, Tue Jan 17 20:44:16 2012 UTC

816 XFreeFontNames (list); 816 XFreeFontNames (list);
817 817
818 // this loop only iterates when the guessed font-size is too small 818 // this loop only iterates when the guessed font-size is too small
819 for (;;) 819 for (;;)
820 { 820 {
821 font_weight *best = fonts + count - 1; 821 font_weight *best = fonts;
822 822
823 for (font_weight *w = fonts; w < fonts + count - 1; w++) 823 for (font_weight *w = fonts + 1; w < fonts + count; w++)
824 if (w->diff <= best->diff) 824 if (w->diff < best->diff)
825 best = w; 825 best = w;
826 826
827 if (!best->name 827 if (!best->name
828 || !(f = XLoadQueryFont (disp, best->name))) 828 || !(f = XLoadQueryFont (disp, best->name)))
829 break; 829 break;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines