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.22 by pcg, Sat Feb 21 22:14:00 2004 UTC vs.
Revision 1.23 by pcg, Sun Feb 22 08:28:36 2004 UTC

1067 } 1067 }
1068 1068
1069 return true; 1069 return true;
1070} 1070}
1071 1071
1072void 1072bool
1073rxvt_fontset::populate (const char *desc) 1073rxvt_fontset::populate (const char *desc)
1074{ 1074{
1075 clear (); 1075 clear ();
1076 1076
1077 fonts.push_back (new_font (0, CS_UNICODE)); 1077 fonts.push_back (new_font (0, CS_UNICODE));
1089 add_fonts ("fixed"); 1089 add_fonts ("fixed");
1090 base_id = fonts.size () - 1; 1090 base_id = fonts.size () - 1;
1091 } 1091 }
1092 1092
1093 if ((int)fonts.size () <= base_id || !realize_font (base_id)) 1093 if ((int)fonts.size () <= base_id || !realize_font (base_id))
1094 { 1094 return false;
1095 fprintf (stderr, "unable to load a base font, please provide one using -fn fontname\n");
1096 exit (1);
1097 }
1098 1095
1099 base_prop = fonts[base_id]->properties (); 1096 base_prop = fonts[base_id]->properties ();
1097
1098 return true;
1100} 1099}
1101 1100
1102int 1101int
1103rxvt_fontset::find_font (uint32_t unicode) 1102rxvt_fontset::find_font (uint32_t unicode)
1104{ 1103{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines