Commit 25c25256 authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(x_default_font_parameter): Try also "fixed", and signal

error here if no suitable font was found.
parent 5ce00b69
...@@ -2986,6 +2986,7 @@ x_default_font_parameter (f, parms) ...@@ -2986,6 +2986,7 @@ x_default_font_parameter (f, parms)
/* If those didn't work, look for something which will /* If those didn't work, look for something which will
at least work. */ at least work. */
"-*-fixed-*-*-*-*-*-140-*-*-c-*-iso8859-1", "-*-fixed-*-*-*-*-*-140-*-*-c-*-iso8859-1",
"fixed",
NULL }; NULL };
int i; int i;
...@@ -2996,7 +2997,7 @@ x_default_font_parameter (f, parms) ...@@ -2996,7 +2997,7 @@ x_default_font_parameter (f, parms)
break; break;
} }
if (NILP (font)) if (NILP (font))
font = build_string ("fixed"); error ("No suitable font was found");
} }
x_default_parameter (f, parms, Qfont, font, "font", "Font", RES_TYPE_STRING); x_default_parameter (f, parms, Qfont, font, "font", "Font", RES_TYPE_STRING);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment