unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#19568: 24.3; not documented: Which system settings affect the choice of the default font by an uncustomized Emacs 24?
@ 2015-01-11 10:55 Ivan Zakharyaschev
  2020-11-23 14:24 ` Stefan Kangas
  0 siblings, 1 reply; 3+ messages in thread
From: Ivan Zakharyaschev @ 2015-01-11 10:55 UTC (permalink / raw)
  To: 19568

My situation and the issue are like the ones in
<http://lists.gnu.org/archive/html/help-gnu-emacs/2012-06/msg00183.html>
(Florian Lindner):

> after the recent upgrade to emacs 24.x (...) my font size
> is too large (one times C-x C-minus corrects it temporarily for the
> buffer). The menu font size is fine, the rest (buffer, mode line,
> minibuffer is too large). I've read about the various ways to set the
> font size.
>
> **Is there a specific reason why the font size has increased after the
> update? And thus a global way to correct it?**

So, even having read about all the ways to set a font in Emacs, I
haven't found an answer which would explain the difference in font
size between an uncustomized Emacs 23.x and Emacs 24.y.

Probably, it's as in the follow-up answer (Tassilo Horn):

> Emacs 24 adds support for gconf and gsettings, so it'll pick whatever
> monospace font and sizes you have set as the default in your system
> settings

I'd like to know the place these settings are stored, and to tweak
them (so that not only Emacs, but perhaps other similarly behaving
programs would get my font settings).

I'm especially interested in making the default font size smaller again.

Unforunately, [in the Emacs
manual](http://www.gnu.org/software/emacs/manual/html_node/emacs/Fonts.html)
it is not documented which system settings affect the choice of the
default font by an uncustomized Emacs 24.

I believe this is an important information for an Emacs user and
should be present in the manual.

In GNU Emacs 24.3.1 (x86_64-alt-linux-gnu, GTK+ Version 3.8.1)
 of 2013-04-20 on localhost.localdomain
Windowing system distributor `The X.Org Foundation', version 11.0.11405000
System Description:	Simply Linux 7.0.4  (Dory)

Configured using:
 `configure '--build=x86_64-alt-linux' '--host=x86_64-alt-linux'
 '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin'
 '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share'
 '--includedir=/usr/include' '--libdir=/usr/lib64'
 '--libexecdir=/usr/lib' '--localstatedir=/var/lib'
 '--sharedstatedir=/var/lib' '--mandir=/usr/share/man'
 '--infodir=/usr/share/info' '--disable-dependency-tracking'
 '--without-included-gettext' '--sharedstatedir=/var' '--with-pop'
 '--with-x-toolkit=gtk3' '--with-png' '--with-jpeg' '--with-xpm'
 '--with-gif' '--with-tiff' '--with-gpm' '--enable-font-backend'
 '--with-freetype' '--with-xft' '--with-dbus' '--with-rsvg'
 '--without-compress-info' '--with-wide-int'
 '--enable-link-time-optimization' 'build_alias=x86_64-alt-linux'
 'host_alias=x86_64-alt-linux' 'CFLAGS=-pipe -Wall -g -O2''

Important settings:
  value of $LANG: ru_RU.UTF-8
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Text

Minor modes in effect:
  flyspell-mode: t
  shell-dirtrack-mode: t
  show-paren-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  auto-fill-function: do-auto-fill
  transient-mark-mode: t

Recent input:
M-x e m a <tab> <tab> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> r e p o <tab> <tab>
r t - e <tab> <return> M-x <up> <return>

Recent messages:
Loading /etc/emacs/site-start.d/10keys.el (source)...done
Loading /etc/emacs/site-start.d/10mouse.el (source)...done
Loading /etc/emacs/site-start.d/10selection.el (source)...
Error while loading /etc/emacs/site-start.d/10selection.el
Loading /etc/emacs/site-start.d/git.el (source)...done
Loading /etc/emacs/site-start.d/rus-win-keyboard.el (source)...done
Loading /home/imz/.emacs.d/site-start.d/tramp-proxy.el (source)...done
Starting new Ispell process [/usr/bin/aspell::default] ...
For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list... [2 times]
byte-code: Cannot open load file: rfc2047

Load-path shadows:
/usr/share/emacs/24.3/lisp/mouse-sel hides
/usr/share/emacs/24.3/lisp/obsolete/mouse-sel

Features:
(shadow sort gnus-util mail-extr emacsbug message rfc822 mml mml-sec
mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils
mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr
mail-utils flyspell ispell tramp tramp-compat password-cache
tramp-loaddefs shell pcomplete comint ansi-color format-spec advice
help-fns cl-lib advice-preload quail help-mode git log-edit easymenu
easy-mmode ring pcvs-util add-log ewoc saveplace paren time-date
cyril-util tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win
x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list
newcomment lisp-mode register page menu-bar rfn-eshadow timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese hebrew greek romanian slovak czech european ethiopic
indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
abbrev minibuffer loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind dynamic-setting system-font-setting font-render-setting
move-toolbar gtk x-toolkit x multi-tty emacs)
--text follows this line--


-- 
Ivan





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

* bug#19568: 24.3; not documented: Which system settings affect the choice of the default font by an uncustomized Emacs 24?
  2015-01-11 10:55 bug#19568: 24.3; not documented: Which system settings affect the choice of the default font by an uncustomized Emacs 24? Ivan Zakharyaschev
@ 2020-11-23 14:24 ` Stefan Kangas
  2021-05-28  1:37   ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Kangas @ 2020-11-23 14:24 UTC (permalink / raw)
  To: Ivan Zakharyaschev; +Cc: 19568

Ivan Zakharyaschev <imz@altlinux.org> writes:

> My situation and the issue are like the ones in
> <http://lists.gnu.org/archive/html/help-gnu-emacs/2012-06/msg00183.html>
> (Florian Lindner):
>
>> after the recent upgrade to emacs 24.x (...) my font size
>> is too large (one times C-x C-minus corrects it temporarily for the
>> buffer). The menu font size is fine, the rest (buffer, mode line,
>> minibuffer is too large). I've read about the various ways to set the
>> font size.
>>
>> **Is there a specific reason why the font size has increased after the
>> update? And thus a global way to correct it?**
>
> So, even having read about all the ways to set a font in Emacs, I
> haven't found an answer which would explain the difference in font
> size between an uncustomized Emacs 23.x and Emacs 24.y.
>
> Probably, it's as in the follow-up answer (Tassilo Horn):
>
>> Emacs 24 adds support for gconf and gsettings, so it'll pick whatever
>> monospace font and sizes you have set as the default in your system
>> settings
>
> I'd like to know the place these settings are stored, and to tweak
> them (so that not only Emacs, but perhaps other similarly behaving
> programs would get my font settings).
>
> I'm especially interested in making the default font size smaller again.
>
> Unforunately, [in the Emacs
> manual](http://www.gnu.org/software/emacs/manual/html_node/emacs/Fonts.html)
> it is not documented which system settings affect the choice of the
> default font by an uncustomized Emacs 24.
>
> I believe this is an important information for an Emacs user and
> should be present in the manual.

It seems like Emacs picks up these gconf settings:

#define GCONF_TOOL_BAR_STYLE "/desktop/gnome/interface/toolbar_style"
#define GCONF_MONO_FONT  "/desktop/gnome/interface/monospace_font_name"
#define GCONF_FONT_NAME  "/desktop/gnome/interface/font_name"

Perhaps we should mention these in the manual?  Or is this something
that should be documented by gconf itself?  How does one even configure
this stuff in Gnome?  (I don't use it myself.)





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

* bug#19568: 24.3; not documented: Which system settings affect the choice of the default font by an uncustomized Emacs 24?
  2020-11-23 14:24 ` Stefan Kangas
@ 2021-05-28  1:37   ` Lars Ingebrigtsen
  0 siblings, 0 replies; 3+ messages in thread
From: Lars Ingebrigtsen @ 2021-05-28  1:37 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: Ivan Zakharyaschev, 19568

Stefan Kangas <stefan@marxist.se> writes:

> #define GCONF_TOOL_BAR_STYLE "/desktop/gnome/interface/toolbar_style"
> #define GCONF_MONO_FONT  "/desktop/gnome/interface/monospace_font_name"
> #define GCONF_FONT_NAME  "/desktop/gnome/interface/font_name"
>
> Perhaps we should mention these in the manual?

I'm not quite sure, but I think that makes some sense, so I've now done
so.

> Or is this something that should be documented by gconf itself?  How
> does one even configure this stuff in Gnome?  (I don't use it myself.)

Let's see...  Right:

gsettings get org.gnome.desktop.interface monospace-font-name
'Monospace 11'

And then there's "set".

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

end of thread, other threads:[~2021-05-28  1:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-11 10:55 bug#19568: 24.3; not documented: Which system settings affect the choice of the default font by an uncustomized Emacs 24? Ivan Zakharyaschev
2020-11-23 14:24 ` Stefan Kangas
2021-05-28  1:37   ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).