Mercurial > emacs
changeset 96289:2e5fb8825124
(x_default_font_parameter): If Xft is available, first try
Monospace-12 for the default font.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Wed, 25 Jun 2008 22:29:20 +0000 |
parents | 22d4563c6236 |
children | dccab8856004 |
files | src/xfns.c |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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. */