# HG changeset patch # User Chong Yidong # Date 1214432960 0 # Node ID 2e5fb88251249782f160498a9076833d091770b1 # Parent 22d4563c62368b654df0827c8c37da386816b2b4 (x_default_font_parameter): If Xft is available, first try Monospace-12 for the default font. diff -r 22d4563c6236 -r 2e5fb8825124 src/xfns.c --- a/src/xfns.c Wed Jun 25 22:29:11 2008 +0000 +++ b/src/xfns.c Wed Jun 25 22:29:20 2008 +0000 @@ -3071,10 +3071,13 @@ if (! STRINGP (font)) { char *names[] - = { "-adobe-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-1", + = { +#ifdef HAVE_XFT + /* This will find the normal Xft font. */ + "Monospace-12", +#endif + "-adobe-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-1", "-misc-fixed-medium-r-normal-*-*-140-*-*-c-*-iso8859-1", - /* This will find the normal Xft font. */ - "monospace-12", "-*-*-medium-r-normal-*-*-140-*-*-c-*-iso8859-1", /* This was formerly the first thing tried, but it finds too many fonts and takes too long. */