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.17 by pcg, Mon Feb 9 07:11:49 2004 UTC vs.
Revision 1.18 by pcg, Fri Feb 13 12:16:21 2004 UTC

942#endif 942#endif
943 943
944///////////////////////////////////////////////////////////////////////////// 944/////////////////////////////////////////////////////////////////////////////
945 945
946rxvt_fontset::rxvt_fontset (rxvt_t r) 946rxvt_fontset::rxvt_fontset (rxvt_t r)
947: r(r) 947: r (r)
948{ 948{
949 clear (); 949 clear ();
950} 950}
951 951
952rxvt_fontset::~rxvt_fontset () 952rxvt_fontset::~rxvt_fontset ()
955} 955}
956 956
957void 957void
958rxvt_fontset::clear () 958rxvt_fontset::clear ()
959{ 959{
960 for (rxvt_font **i = fonts.begin (); i != fonts.end(); i++) 960 for (rxvt_font **i = fonts.begin (); i != fonts.end (); i++)
961 FONT_UNREF (*i); 961 FONT_UNREF (*i);
962 962
963 fonts.clear (); 963 fonts.clear ();
964 base_id = 0; 964 base_id = 0;
965 base_prop.height = 0x7fffffff; 965 base_prop.height = 0x7fffffff;
1084 base_id = 1; 1084 base_id = 1;
1085 1085
1086 // we currently need a base-font, no matter what 1086 // we currently need a base-font, no matter what
1087 if ((int)fonts.size () <= base_id || !realize_font (base_id)) 1087 if ((int)fonts.size () <= base_id || !realize_font (base_id))
1088 { 1088 {
1089 puts ("unable to load specified font(s), falling back to 'fixed'\n"); 1089 puts ("unable to load specified font (s), falling back to 'fixed'\n");
1090 add_fonts ("fixed"); 1090 add_fonts ("fixed");
1091 base_id = fonts.size () - 1; 1091 base_id = fonts.size () - 1;
1092 } 1092 }
1093 1093
1094 if ((int)fonts.size () <= base_id || !realize_font (base_id)) 1094 if ((int)fonts.size () <= base_id || !realize_font (base_id))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines