all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* default font used
@ 2012-07-10 14:24 Buchs, Kevin
  0 siblings, 0 replies; 4+ messages in thread
From: Buchs, Kevin @ 2012-07-10 14:24 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 283 bytes --]

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.

- Kevin Buchs

 


[-- Attachment #2: Type: text/html, Size: 8271 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: default font used
       [not found] <mailman.4478.1341930284.855.help-gnu-emacs@gnu.org>
@ 2012-07-10 15:30 ` Jason Rumney
  2012-07-10 15:43   ` Drew Adams
       [not found]   ` <mailman.4483.1341935017.855.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 4+ messages in thread
From: Jason Rumney @ 2012-07-10 15:30 UTC (permalink / raw)
  To: help-gnu-emacs

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",


^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: default font used
  2012-07-10 15:30 ` default font used Jason Rumney
@ 2012-07-10 15:43   ` Drew Adams
       [not found]   ` <mailman.4483.1341935017.855.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 4+ messages in thread
From: Drew Adams @ 2012-07-10 15:43 UTC (permalink / raw)
  To: 'Jason Rumney', help-gnu-emacs

> The default font is chosen inside x_default_font_parameter in 
> xfns.c.... the first match from the following list is used:
> ...
> 	    "-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",

Yes, but a user can set the font to use by default.  See this:
http://emacswiki.org/emacs/SetFonts

E.g.: (set-face-attribute 'default nil :font FONT)

(Alternatively, you can set the `font' parameter in user option
`default-frame-alist'.)




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: default font used
       [not found]   ` <mailman.4483.1341935017.855.help-gnu-emacs@gnu.org>
@ 2012-07-13  4:10     ` Javier
  0 siblings, 0 replies; 4+ messages in thread
From: Javier @ 2012-07-13  4:10 UTC (permalink / raw)
  To: help-gnu-emacs


You can also set the font in the command line in Linux:

emacs -fn 10x20

if you define the font in .emacs it will override the command-line option

Drew Adams <drew.adams@oracle.com> wrote:
>> The default font is chosen inside x_default_font_parameter in 
>> xfns.c.... the first match from the following list is used:
>> ...
>>           "-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",
> 
> Yes, but a user can set the font to use by default.  See this:
> http://emacswiki.org/emacs/SetFonts
> 
> E.g.: (set-face-attribute 'default nil :font FONT)
> 
> (Alternatively, you can set the `font' parameter in user option
> `default-frame-alist'.)
> 
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-07-13  4:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.4478.1341930284.855.help-gnu-emacs@gnu.org>
2012-07-10 15:30 ` default font used Jason Rumney
2012-07-10 15:43   ` Drew Adams
     [not found]   ` <mailman.4483.1341935017.855.help-gnu-emacs@gnu.org>
2012-07-13  4:10     ` Javier
2012-07-10 14:24 Buchs, Kevin

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.