Subject: Re: bug#6526: 24.0.50; Font X resouce is ignored

From: Jan Djärv <[email-masked]>
Date: Wed, 30 Jun 2010 08:48:54 +0200

Kenichi Handa skrev 2010-06-30 07.41:
> In article<[email-masked]>, Jan Djärv<[email-masked]>  writes:
>
>>> What is "use-system-font setting"?
>
>> Emacs uses the font set in the desktop preferences in Gnome, i.e. from GConf.
>
>>> Does it work if I don't have Font X resource?
>
>> Yes.
>
> On Ubuntu, I removed all X resouses, ran the program
> gnome-appearance-properties, opened "Fonts" tab, set
> "Application font" to "Freemono Medium 10", then ran Emacs.
> But the font used was "Dejavu Sans Mono", not "Freemono".

Application font is not what we use, it is Monospaced font.  Other things to 
check for:

Did you compile --with-gconf (the default if GConf libraries are found) and 
customize font-use-system-font to t?

You can check for feature system-font-setting in Emacs, it is set if GConf is 
compiled in.  The function font-get-system-font should return the system 
monospaced font.  You can get application font by calling 
font-get-system-normal-font.

>
> Is gnome-appearance-properties not that right program to set
> "the desktop preferences"?

It is the right program.

	Jan D,