unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#2714: 23.0.91; set-default-font incorrectly changes font height?
@ 2009-03-19  0:36 ` Miles Bader
  2009-03-19  6:53   ` Kenichi Handa
  2009-03-19 11:15   ` bug#2714: marked as done (23.0.91; set-default-font incorrectly changes font height?) Emacs bug Tracking System
  0 siblings, 2 replies; 4+ messages in thread
From: Miles Bader @ 2009-03-19  0:36 UTC (permalink / raw)
  To: emacs-pretest-bug


When I use `set-default-font', it seems to affect the font-height even
though I explicitly tell it to only change the family.


To reproduce:

 (1) Start emacs with:  emacs -Q

 (2) Evaluate the following in *scratch*:

        (set-default-font "Liberation Mono-8")
 
     Notice that the font is now fairly small, as I specified an 8-point font.

 (3) Evaluate the following in *scratch*:

        (set-fontset-font nil 'unicode
                          (font-spec :family "Dejavu Sans Mono")
                          nil 'prepend)

 (4) ** Notice that the default font size has changed to become fairly
     large , even though I explicitly specified only the family to
     `set-fontset-font'. **

 (5) I can then force the size back to the original correct size using:

        (set-face-attribute 'default nil :height 80)


[Hopefully you have those two fonts on your system, as they're common
free fonts; however any two scalable fonts will probably work.]

Thanks,

-Miles


If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/usr/local/share/emacs/23.0.91/etc/DEBUG for instructions.


In GNU Emacs 23.0.91.14 (x86_64-unknown-linux-gnu, GTK+ Version 2.15.5)
 of 2009-03-18 on catnip
Windowing system distributor `The X.Org Foundation', version 11.0.10599902
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: ja_JP.UTF-8
  value of $XMODIFIERS: @im=SCIM
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Emacs-Lisp

Minor modes in effect:
  rcirc-track-minor-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
8 " ) <return> C-x C-v ~ / . e m a c s . e l <return> 
<escape> > C-u C-p C-u C-p C-u C-p C-p C-SPC C-n <escape> 
w C-x C-n C-SPC C-p C-SPC C-n C-n <escape> w C-x b 
<return> C-y C-p C-e C-p M-b M-b M-b <escape> h <escape> 
h D e j a v u SPC S a n s SPC m <backspace> M o n o 
<escape> d C-n M-b M-b M-b M-b C o u r i e r <escape> 
d <escape> d <escape> d C-x C-s C-s e C-p C-p M-b M-b 
<escape> h C-x C-s C-n C-h f <return> C-x o C-v C-n 
<tab> <return> C-x p C-f ( f o n t - s p e c SPC " 
f a m i l <escape> h <backspace> : f a m i l y SPC 
C-M-f ) C-M-b C-n C-b C-n C-M-f C-M-f C-M-f C-M-f C-M-b 
( f o n t <escape> ' SPC : f a m i l y SPC C-M-f ) 
C-x C-s C-p C-p C-a C-k C-k C-e M-b M-b M-b <escape> 
C-g C-a C-y C-p M-f M-f M-p C-a C-k C-k C-x C-s ( s 
e t - f a c e - a t t r i b u t e SPC : <backspace> 
' d e f a u l t SPC n i l SPC : h e i g h t SPC " 8 
0 " ) C-j C-p C-SPC C-e <escape> w C-a C-k C-p C-p 
C-p C-n ; C-x C-s C-SPC C-e <escape> w C-/ C-n C-n 
C-SPC C-p C-p C-p <escape> w r e C-g <escape> x r e 
p o C-g <escape> h <escape> x r e p o r t - e m a SPC 
<return>

Recent messages:
Saving file /tmp/.emacs...
Wrote /tmp/.emacs
Mark set
Undo!
Mark set
xding
Quit
xding
Quit
Scanning for dabbrevs...100%

-- 
Barometer, n. An ingenious instrument which indicates what kind of weather we
are having.






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

* bug#2714: 23.0.91; set-default-font incorrectly changes font height?
  2009-03-19  0:36 ` bug#2714: 23.0.91; set-default-font incorrectly changes font height? Miles Bader
@ 2009-03-19  6:53   ` Kenichi Handa
  2009-03-19  8:15     ` Miles Bader
  2009-03-19 11:15   ` bug#2714: marked as done (23.0.91; set-default-font incorrectly changes font height?) Emacs bug Tracking System
  1 sibling, 1 reply; 4+ messages in thread
From: Kenichi Handa @ 2009-03-19  6:53 UTC (permalink / raw)
  To: Miles Bader, 2714

In article <87ljr2gxhp.fsf@catnip.gol.com>, Miles Bader <miles@gnu.org> writes:

> When I use `set-default-font', it seems to affect the font-height even
> though I explicitly tell it to only change the family.

I've just installed a fix.   Could you please try again
with the latest code?

---
Kenichi Handa
handa@m17n.org






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

* bug#2714: 23.0.91; set-default-font incorrectly changes font  height?
  2009-03-19  6:53   ` Kenichi Handa
@ 2009-03-19  8:15     ` Miles Bader
  0 siblings, 0 replies; 4+ messages in thread
From: Miles Bader @ 2009-03-19  8:15 UTC (permalink / raw)
  To: Kenichi Handa; +Cc: 2714

On Thu, Mar 19, 2009 at 3:53 PM, Kenichi Handa <handa@m17n.org> wrote:
>> When I use `set-default-font', it seems to affect the font-height even
>> though I explicitly tell it to only change the family.
>
> I've just installed a fix.   Could you please try again
> with the latest code?

Hi, I tested, and it seems to work correctly now!

Thanks,

-Miles

-- 
Do not taunt Happy Fun Ball.






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

* bug#2714: marked as done (23.0.91; set-default-font incorrectly  changes font height?)
  2009-03-19  0:36 ` bug#2714: 23.0.91; set-default-font incorrectly changes font height? Miles Bader
  2009-03-19  6:53   ` Kenichi Handa
@ 2009-03-19 11:15   ` Emacs bug Tracking System
  1 sibling, 0 replies; 4+ messages in thread
From: Emacs bug Tracking System @ 2009-03-19 11:15 UTC (permalink / raw)
  To: Kenichi Handa

[-- Attachment #1: Type: text/plain, Size: 911 bytes --]


Your message dated Thu, 19 Mar 2009 20:10:27 +0900
with message-id <E1LkG8p-0006wU-Lh@etlken>
and subject line Re: bug#2714: 23.0.91; set-default-font incorrectly changes font  height?
has caused the Emacs bug report #2714,
regarding 23.0.91; set-default-font incorrectly changes font height?
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 owner@emacsbugs.donarmstrong.com
immediately.)


-- 
2714: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=2714
Emacs Bug Tracking System
Contact owner@emacsbugs.donarmstrong.com with problems

[-- Attachment #2: Type: message/rfc822, Size: 5612 bytes --]

From: Miles Bader <miles@gnu.org>
To: emacs-pretest-bug@gnu.org
Subject: 23.0.91; set-default-font incorrectly changes font height?
Date: Thu, 19 Mar 2009 09:36:02 +0900
Message-ID: <87ljr2gxhp.fsf@catnip.gol.com>


When I use `set-default-font', it seems to affect the font-height even
though I explicitly tell it to only change the family.


To reproduce:

 (1) Start emacs with:  emacs -Q

 (2) Evaluate the following in *scratch*:

        (set-default-font "Liberation Mono-8")
 
     Notice that the font is now fairly small, as I specified an 8-point font.

 (3) Evaluate the following in *scratch*:

        (set-fontset-font nil 'unicode
                          (font-spec :family "Dejavu Sans Mono")
                          nil 'prepend)

 (4) ** Notice that the default font size has changed to become fairly
     large , even though I explicitly specified only the family to
     `set-fontset-font'. **

 (5) I can then force the size back to the original correct size using:

        (set-face-attribute 'default nil :height 80)


[Hopefully you have those two fonts on your system, as they're common
free fonts; however any two scalable fonts will probably work.]

Thanks,

-Miles


If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/usr/local/share/emacs/23.0.91/etc/DEBUG for instructions.


In GNU Emacs 23.0.91.14 (x86_64-unknown-linux-gnu, GTK+ Version 2.15.5)
 of 2009-03-18 on catnip
Windowing system distributor `The X.Org Foundation', version 11.0.10599902
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: ja_JP.UTF-8
  value of $XMODIFIERS: @im=SCIM
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Emacs-Lisp

Minor modes in effect:
  rcirc-track-minor-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
8 " ) <return> C-x C-v ~ / . e m a c s . e l <return> 
<escape> > C-u C-p C-u C-p C-u C-p C-p C-SPC C-n <escape> 
w C-x C-n C-SPC C-p C-SPC C-n C-n <escape> w C-x b 
<return> C-y C-p C-e C-p M-b M-b M-b <escape> h <escape> 
h D e j a v u SPC S a n s SPC m <backspace> M o n o 
<escape> d C-n M-b M-b M-b M-b C o u r i e r <escape> 
d <escape> d <escape> d C-x C-s C-s e C-p C-p M-b M-b 
<escape> h C-x C-s C-n C-h f <return> C-x o C-v C-n 
<tab> <return> C-x p C-f ( f o n t - s p e c SPC " 
f a m i l <escape> h <backspace> : f a m i l y SPC 
C-M-f ) C-M-b C-n C-b C-n C-M-f C-M-f C-M-f C-M-f C-M-b 
( f o n t <escape> ' SPC : f a m i l y SPC C-M-f ) 
C-x C-s C-p C-p C-a C-k C-k C-e M-b M-b M-b <escape> 
C-g C-a C-y C-p M-f M-f M-p C-a C-k C-k C-x C-s ( s 
e t - f a c e - a t t r i b u t e SPC : <backspace> 
' d e f a u l t SPC n i l SPC : h e i g h t SPC " 8 
0 " ) C-j C-p C-SPC C-e <escape> w C-a C-k C-p C-p 
C-p C-n ; C-x C-s C-SPC C-e <escape> w C-/ C-n C-n 
C-SPC C-p C-p C-p <escape> w r e C-g <escape> x r e 
p o C-g <escape> h <escape> x r e p o r t - e m a SPC 
<return>

Recent messages:
Saving file /tmp/.emacs...
Wrote /tmp/.emacs
Mark set
Undo!
Mark set
xding
Quit
xding
Quit
Scanning for dabbrevs...100%

-- 
Barometer, n. An ingenious instrument which indicates what kind of weather we
are having.



[-- Attachment #3: Type: message/rfc822, Size: 2356 bytes --]

From: Kenichi Handa <handa@m17n.org>
To: Miles Bader <miles@gnu.org>
Cc: 2714-done@emacsbugs.donarmstrong.com
Subject: Re: bug#2714: 23.0.91; set-default-font incorrectly changes font  height?
Date: Thu, 19 Mar 2009 20:10:27 +0900
Message-ID: <E1LkG8p-0006wU-Lh@etlken>

In article <fc339e4a0903190115i4b3f89daw3cb24873b74084d7@mail.gmail.com>, Miles Bader <miles@gnu.org> writes:

> On Thu, Mar 19, 2009 at 3:53 PM, Kenichi Handa <handa@m17n.org> wrote:
>>> When I use `set-default-font', it seems to affect the font-height even
>>> though I explicitly tell it to only change the family.
> >
> > I've just installed a fix.  Could you please try again
> > with the latest code?

> Hi, I tested, and it seems to work correctly now!

Thank you for testing it.  I'll close bug#2714.

---
Kenichi Handa
handa@m17n.org


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

end of thread, other threads:[~2009-03-19 11:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <E1LkG8p-0006wU-Lh@etlken>
2009-03-19  0:36 ` bug#2714: 23.0.91; set-default-font incorrectly changes font height? Miles Bader
2009-03-19  6:53   ` Kenichi Handa
2009-03-19  8:15     ` Miles Bader
2009-03-19 11:15   ` bug#2714: marked as done (23.0.91; set-default-font incorrectly changes font height?) Emacs bug Tracking System

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).