[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-bug-tracker] bug#5413: marked as done (23.1.91; Incorrect font si

From: Emacs bug Tracking System
Subject: [Emacs-bug-tracker] bug#5413: marked as done (23.1.91; Incorrect font sizes and weights)
Date: Tue, 19 Jan 2010 15:54:02 +0000

Your message dated Tue, 19 Jan 2010 16:53:01 +0100
with message-id <address@hidden>
and subject line Re: bug#5413: 23.1.91; Incorrect font sizes and weights
has caused the Emacs bug report #5413,
regarding 23.1.91; Incorrect font sizes and weights
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact address@hidden

5413: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5413
Emacs Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 23.1.91; Incorrect font sizes and weights Date: Mon, 18 Jan 2010 19:53:26 +0100
I want Emacs to use the font that I get with

  $ urxvt -fn 'xft:DejaVu Sans Mono-10'

(or when this font name is given to any other program).  So the obvious
thing to try would be

  $ emacs -Q -fn 'DejaVu Sans Mono-10'

but this resolves to

  xft:-unknown-DejaVu Sans Mono-normal-normal-normal-*-17-*-*-*-m-0-iso10646-1

which is way bigger than I want.  Next, I try manually specifying the
font that 'DejaVu Sans Mono-10.2' resolved to in my last emacs build

  GNU Emacs (x86_64-unknown-linux-gnu, GTK+ Version 2.16.5) of 
2009-10-08 on home.sergej.pp.ru

(I have no idea why this goofyness was required, but 'DejaVu Sans Mono-10' 
looked bad there.)

  $ emacs -Q -fn '-unknown-DejaVu Sans 

And this font seems to be the correct size, but the weight is too light.
Compare the bottom two frames in the screenshot


The bottom-left frame is the rendering I want (using the build
quoted above with 'DejaVu Sans Mono-10.2').  The bottom-right frame is
the latest build with what claims to be the desired font, and the top
frame is the latest build with 'DejaVu Sans Mono-10'.

Why is it so hard to choose my desired font?


In GNU Emacs (x86_64-unknown-linux-gnu, GTK+ Version 2.18.5)
 of 2010-01-18 on kunyang
Windowing system distributor `The X.Org Foundation', version 11.0.10703902
configured using `configure  '--prefix=/usr' '--sysconfdir=/etc' 
'--localstatedir=/var' '--libexecdir=/usr/lib' '--mandir=/usr/share/man' 
'--with-x-toolkit=gtk' '--without-gconf' 'CFLAGS=-march=native -O1 -pipe' 
'LDFLAGS=-Wl,--hash-style=gnu -Wl,--as-needed''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.utf8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Help

Minor modes in effect:
  global-auto-complete-mode: t
  show-paren-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: t
  view-mode: t

Recent input:
C-p C-p C-u C-x = C-x 1 C-u C-x = <C-tab> <C-tab> <help-echo> 
<help-echo> C-S-x 0 <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
M-x r e p o r t <tab> <return>

Recent messages:
Setting up CEDET packages...done
Loading /usr/share/emacs/site-lisp/cedet/common/cedet.el (source)...done
ECB 2.40 uses CEDET 1.0pre7 (contains semantic 2.0pre7, eieio 1.2, speedbar 
Loading /home/jed/.emacs-ede...done
Loading /home/jed/.ecb-user-layouts.el (source)...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Type C-x 1 to delete the help window.
Char: ; (59, #o73, #x3b) point=141 of 191 (73%) column=0
Type C-x 1 to delete the help window.
Char: ; (59, #o73, #x3b) point=141 of 191 (73%) column=0

Load-path shadows:
/usr/share/emacs/site-lisp/ecb/ecb2/test hides 
/usr/share/emacs/site-lisp/cedet/common/ezimage hides 
/usr/share/emacs/site-lisp/cedet/speedbar/speedbar hides 
/usr/share/emacs/site-lisp/cedet/speedbar/dframe hides 
/usr/share/emacs/site-lisp/cedet/speedbar/sb-image hides 
/usr/share/emacs/site-lisp/cedet/eieio/eieio-custom hides 
/usr/share/emacs/site-lisp/cedet/eieio/eieio-opt hides 
/usr/share/emacs/site-lisp/cedet/eieio/eieio-base hides 
/usr/share/emacs/site-lisp/cedet/eieio/eieio-comp hides 
/usr/share/emacs/site-lisp/cedet/eieio/eieio-datadebug hides 
/usr/share/emacs/site-lisp/cedet/eieio/chart hides 
/usr/share/emacs/site-lisp/cedet/eieio/eieio-speedbar hides 
/usr/share/emacs/site-lisp/cedet/eieio/eieio hides 
/usr/share/emacs/site-lisp/cedet/common/data-debug hides 
/usr/share/emacs/site-lisp/cedet/common/pulse hides 
/usr/share/emacs/site-lisp/cedet/common/cedet-global hides 
/usr/share/emacs/site-lisp/cedet/ede/ede hides 
/usr/share/emacs/site-lisp/cedet/semantic/semantic hides 
/usr/share/emacs/site-lisp/cedet/srecode/srecode hides 
/usr/share/emacs/site-lisp/cedet/common/cedet-cscope hides 
/usr/share/emacs/site-lisp/cedet/common/cedet-idutils hides 
/usr/share/emacs/site-lisp/cedet/common/cedet hides 
/usr/share/emacs/site-lisp/cedet/common/inversion hides 
/usr/share/emacs/site-lisp/cedet/common/mode-local hides 
/usr/share/emacs/site-lisp/cedet/common/cedet-files hides 

(shadow sort mail-extr emacsbug eieio-opt pp descr-text help-mode view
semantic-el semantic-bovine bovine-debug semantic-debug ecb-layout-defs
uniquify printing ps-print ps-def lpr preview-latex tex-site auto-loads
caml-font cmake-mode cc-styles cc-align cc-engine cc-vars cc-defs tempo
url url-proxy url-privacy url-expand url-methods url-history url-cookie
url-util url-parse timezone url-vars xml-parse doxymacs auto-complete
easy-mmode expander pulldown ede-cpp-root semantic-mru-bookmark
semantic-idle semantic-decorate-include semantic-decorate-mode
semantic-decorate semantic-gcc semantic-dep semantic-ia pulse senator
which-func semantic-imenu semantic-sb imenu ecb ecb-symboldef silentcomp
ecb-analyse ecb-compatibility ecb-winman-support ecb-autogen autoload
ecb-tod ecb-cycle ecb-eshell ecb-help ecb-jde ecb-method-browser
hideshow ecb-semantic ecb-file-browser ecb-speedbar ecb-layout compile
comint ecb-create-layout ecb-compilation ecb-common-browser ecb-navigate
ecb-cedet-wrapper semanticdb-mode semanticdb-find semanticdb-ref
ecb-mode-line ecb-face tree-buffer ecb-upgrade ecb-util ring thingatpt
cedet cedet-contrib-load contrib-loaddefs cogre-load cogre-loaddefs
cogre-srecode semantic-edit srecode-template-mode srecode-template
srecode-template-wy semantic-wisent wisent srecode-map
srecode-dictionary speedbar-load speedbar-loaddefs ede-load ede-loaddefs
ede-speedbar ede-files ede eieio-speedbar semantic-ia-sb
semantic-analyze semantic-scope semantic-analyze-fcn semantic-sort
semanticdb-el semanticdb semantic-ctxt semantic-format
semantic-util-modes semantic-util semantic semantic-lex semantic-tag
working fame speedbar sb-image ezimage dframe assoc eieio-custom
ede-source eieio-base srecode-load srecode srecode-loaddefs
semantic-load semantic-fw semantic-loaddefs mode-local find-func
eieio-load eieio-loaddefs cedet-load cedet-compat cedet-loaddefs eieio
byte-opt bytecomp byte-compile inversion browse-kill-ring advice
help-fns advice-preload derived ido paren jabber-autoloads starttls
smtpmail notmuch edmacro kmacro message idna sendmail regexp-opt
ecomplete rfc822 mml easymenu mml-sec mailabbrev nnheader gmm-utils
wid-edit mailheader canlock sha1 hex-util hashcash mail-utils mm-view
smime password-cache dig mm-decode gnus-util netrc mm-bodies mm-encode
mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mm-util
time-date mail-prsvr cl cl-19 tooltip ediff-hook vc-hooks
lisp-float-type mwheel x-win x-dnd font-setting tool-bar dnd fontset
image fringe lisp-mode register page menu-bar rfn-eshadow timer select
scroll-bar mldrag 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 loaddefs button minibuffer faces cus-face files
text-properties overlay md5 base64 format env code-pages mule custom
widget hashtable-print-readable backquote make-network-process dbusbind
font-render-setting gtk x-toolkit x multi-tty emacs)

--- End Message ---
--- Begin Message --- Subject: Re: bug#5413: 23.1.91; Incorrect font sizes and weights Date: Tue, 19 Jan 2010 16:53:01 +0100 User-agent: Thunderbird (X11/20090817)
Jed Brown skrev:
On Tue, 19 Jan 2010 16:02:30 +0100, Jan Djärv <address@hidden> wrote:
What system are you rinning (i.e. Gnome, KDE, other?)?

Archlinux with Xmonad/Gnome, I thought building --without-gconf might
help, but it didn't (although I didn't do a full rebuild so perhaps I
still have stale gconf stuff).

The GConf stuff is only for reading the desktop monospace font if you choose to use that in Emacs (you must customize font-use-system-font).

% xrdb -query|grep Xft


% xdpyinfo|grep resolution

  resolution:    96x96 dots per inch

Get a new version from the trunk and get the value of the lisp variable xft-settings (C-h v xft-settings).

"Antialias: 1, Hinting: 1, RGBA: 1, LCDFilter: 0, Hintstyle: 3, DPI: 120.000000"

Setting the Xft.dpi resource does not change this DPI setting.

The dpi is read from the XSETTINGS mechanism, so they override any X resources.

It is not the weight, it is the hinting. Emacs uses the values from the desktop settings if available, or the fontconfig defaults otherwise.

Okay, I changed the settings in Gnome's font rendering details panel and
now I get what I wanted

"Antialias: 1, Hinting: 1, RGBA: 1, LCDFilter: 0, Hintstyle: 1, DPI: 96.000000"

and the fonts look good again with the expected 'DejaVu Sans Mono-10'.


        Jan D.

--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]