… | |
… | |
1067 | } |
1067 | } |
1068 | |
1068 | |
1069 | return true; |
1069 | return true; |
1070 | } |
1070 | } |
1071 | |
1071 | |
1072 | void |
1072 | bool |
1073 | rxvt_fontset::populate (const char *desc) |
1073 | rxvt_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 | |
1102 | int |
1101 | int |
1103 | rxvt_fontset::find_font (uint32_t unicode) |
1102 | rxvt_fontset::find_font (uint32_t unicode) |
1104 | { |
1103 | { |