all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jason Rumney <jasonr@gnu.org>
To: Mickey Ferguson <MFerguson@plantcml.com>,
	3478@emacsbugs.donarmstrong.com
Cc: bug-gnu-emacs@gnu.org
Subject: bug#3478: Error in set-default-font
Date: Sat, 06 Jun 2009 22:11:54 +0800	[thread overview]
Message-ID: <4A2A792A.3050403@gnu.org> (raw)
In-Reply-To: <B7C31281351E1646814F4A6E3A15895C059757@costarica.peinet.peinc.com>

reassign 3478 emacs,w32
found 3478 22.3
notfound 3478 23.0.94
tags 3478 wontfix
thanks

Mickey Ferguson wrote:
> When I execute the following two lines of code:
>
>   (set-default-font
>    "-raster-Terminal-bold-r-normal-normal-12-90-96-96-c-*-ms-oemlatin")
>
> emacs changes the size of the window (frame) so that it no longer
> displays 80 columns.

This seems to be caused by the fact that there is no font that exactly 
matches that name (at least on my install of Windows XP).
There are two non-bold versions of Terminal font at 12 pixels height, 
and a bold version 8 pixels high.
Emacs 21 and 22 choose a non-bold 12 point version, but because of the 
wildcard in the width field, they end up confused about the width - the 
frame width seems to be set based on the ...-c-70-ms-oemlatin version, 
while the font used for display is the ...-c-50-ms-oemlatin version. 
Emacs 22 confuses things further by using a synthesized bold version of 
the font, which messes up display further.

Due to a complete rewrite of the font handling code, Emacs 23 chooses 
the 8 pixel high bold font, and displays consistently.  I don't think 
there is anything further needed to fix this, but thanks for reporting it.







  reply	other threads:[~2009-06-06 14:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-05 23:59 bug#3478: Error in set-default-font Mickey Ferguson
2009-06-06 14:11 ` Jason Rumney [this message]
2009-06-06 14:55   ` Processed: " 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

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

  git send-email \
    --in-reply-to=4A2A792A.3050403@gnu.org \
    --to=jasonr@gnu.org \
    --cc=3478@emacsbugs.donarmstrong.com \
    --cc=MFerguson@plantcml.com \
    --cc=bug-gnu-emacs@gnu.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 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.