[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: default font used
From: |
Jason Rumney |
Subject: |
Re: default font used |
Date: |
Tue, 10 Jul 2012 08:30:35 -0700 (PDT) |
User-agent: |
G2/1.0 |
On Tuesday, 10 July 2012 22:24:28 UTC+8, Buchs, Kevin wrote:
> I’m building emacs 24 from source on OpenSuse Linux and the result comes up
> with a default font that is not desireable (-sony...). I’ve searched the code
> and have not yet found what determines the default font used. Can someone
> direct me to that, please.
The default font is chosen inside x_default_font_parameter in xfns.c. In the
current development version as of a couple of days ago, the first match from
the following list is used:
#ifdef HAVE_XFT
/* This will find the normal Xft font. */
"monospace-10",
#endif
"-adobe-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-1",
"-misc-fixed-medium-r-normal-*-*-140-*-*-c-*-iso8859-1",
"-*-*-medium-r-normal-*-*-140-*-*-c-*-iso8859-1",
/* This was formerly the first thing tried, but it finds
too many fonts and takes too long. */
"-*-*-medium-r-*-*-*-*-*-*-c-*-iso8859-1",
/* If those didn't work, look for something which will
at least work. */
"-*-fixed-*-*-*-*-*-140-*-*-c-*-iso8859-1",
"fixed",