From: Kenichi Handa <handa@m17n.org>
To: Daniel Novotny <dnovotny@redhat.com>, 4547@emacsbugs.donarmstrong.com
Cc: bug-gnu-emacs@gnu.org
Subject: bug#4547: a bug: emacs 23.1: very large font
Date: Thu, 01 Oct 2009 10:26:04 +0900 [thread overview]
Message-ID: <tl7ocorvr9v.fsf@m17n.org> (raw)
In-Reply-To: <487180556.521141253786336982.JavaMail.root@zmail04.collab.prod.int.phx2.redhat.com> (message from Daniel Novotny on Thu, 24 Sep 2009 05:58:56 -0400 (EDT))
In article <487180556.521141253786336982.JavaMail.root@zmail04.collab.prod.int.phx2.redhat.com>, Daniel Novotny <dnovotny@redhat.com> writes:
> the bug report implies that the problem here is that emacs is scaling the requested font size according to
> the display resolution reported by Xorg. These are accurate for the dimensions of the screen, but that
> doesn't mean emacs should use them to change the font sizes the user requested:
> see https://bugzilla.redhat.com/show_bug.cgi?id=517272#c3
That bug report says:
> eg, my laptop display reports xdpyinfo
>
> dimensions: 1600x1200 pixels (304x228 millimeters)
> resolution: 134x134 dots per inch
>
> while my external monitor report
>
> dimensions: 1680x1050 pixels (514x321 millimeters)
> resolution: 83x83 dots per inch
>
> Now both of these are accurate for the dimensions of the screen, but that
> doesn't mean emacs should use them to change the font sizes the user requested
>
> > For example, using my laptop display
> >
> > - Go to the menu 'Options -> Set Default Font'.
> > - Select 'DejaVu Sans Mono, Book, 12pt'
> > - In a buffer, move cursor over a letter, and type 'c-u c-x =', and it
> > displays
> >
> > xft:-unknown-DejaVu Sans-normal-normal-normal-*-22-*-*-*-*-0-iso10646-1
> > (#x50)
>
> ie, so when user requested requested 12pt, and emacs instead gave them 22pt
At least, this bug report confuses point and pixelsize. In
the above case, Emacs selected "22-pixelsize" font, not
"22-point" font. And, on 134 DPI screen, 22-pixel is
12-point (3.4mm). So, it should be the correct size the
user requested by saying "12pt".
If one wants a font of 12-pixelsize, do something like:
ESC : (set-default-font "dejavu sans mono:pixelsize=12") RET
---
Kenichi Handa
handa@m17n.org
next prev parent reply other threads:[~2009-10-01 1:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <2043147550.521091253786215111.JavaMail.root@zmail04.collab.prod.int.phx2.redhat.com>
2009-09-24 9:58 ` bug#4547: a bug: emacs 23.1: very large font Daniel Novotny
2009-10-01 1:26 ` Kenichi Handa [this message]
2009-11-17 9:31 Jan Djärv
2009-11-17 13:45 ` Stefan Monnier
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tl7ocorvr9v.fsf@m17n.org \
--to=handa@m17n.org \
--cc=4547@emacsbugs.donarmstrong.com \
--cc=bug-gnu-emacs@gnu.org \
--cc=dnovotny@redhat.com \
/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 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.