unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Jan Djärv" <jan.h.d@swipnet.se>
To: Jed Brown <jed@59A2.org>, 5413@debbugs.gnu.org
Subject: bug#5413: 23.1.91; Incorrect font sizes and weights
Date: Tue, 19 Jan 2010 16:02:30 +0100	[thread overview]
Message-ID: <4B55C986.4050409@swipnet.se> (raw)
In-Reply-To: <87wrzfgs7t.fsf@59A2.org>

Jed Brown skrev:
> 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.  

What system are you rinning (i.e. Gnome, KDE, other?)?
Does
% xrdb -query|grep Xft
show anything?

How about
% xdpyinfo|grep resolution
?

Emacs now uses the DPI setting from the dekstop settings if available instead 
of the dpi reported by the X server.  You probably have a mismatch there.

> Next, I try manually specifying the
> font that 'DejaVu Sans Mono-10.2' resolved to in my last emacs build
> 
>   GNU Emacs 23.1.50.1 (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 Mono-normal-normal-normal-*-14-*-*-*-m-0-iso10646-1'
> 

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

> And this font seems to be the correct size, but the weight is too light.

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

	Jan D.







  reply	other threads:[~2010-01-19 15:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-18 18:53 bug#5413: 23.1.91; Incorrect font sizes and weights Jed Brown
2010-01-19 15:02 ` Jan Djärv [this message]
2010-01-19 15:44   ` Jed Brown
2010-01-19 15:53     ` Jan Djärv
2010-01-19 15:54 ` bug#5413: marked as done (23.1.91; Incorrect font sizes and weights) Emacs bug Tracking System

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B55C986.4050409@swipnet.se \
    --to=jan.h.d@swipnet.se \
    --cc=5413@debbugs.gnu.org \
    --cc=jed@59A2.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).