all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Brent Goodrick'" <bgoodr@gmail.com>,
	<3285@emacsbugs.donarmstrong.com>,
	 "'Chong Yidong'" <cyd@stupidchicken.com>
Subject: bug#3285: 23.0.91; Messaging propertized text increases minibuffer height unnecessarily
Date: Fri, 15 May 2009 06:57:09 -0700	[thread overview]
Message-ID: <003701c9d565$0ab09e50$0200a8c0@us.oracle.com> (raw)
In-Reply-To: <e38bce640905142047g3a5a6306p44e8aa698cd51036@mail.gmail.com>

> > > Notice that the height changes to 2 lines.
> > >
> > > The maximum height of the regular sized font versus of 
> > > the bold font can NOT be so different as to cause the
> > > minibuffer have to increase in height from 1 line to 2 lines.
> >
> > I'm afraid I don't observe this.  Use a bold font does not 
> > resize the minibuffer.  What font are you using?
> 
> I'm using xft with the "Bitstream Vera Sans Mono-9" font.

I suspect this is the known problem, reported long ago, that if a face makes a
character slightly taller, then an extra line is allocated to handle the extra 1
or 2 pixels in height. 

I see this too, because I use a face with `box' for one character sometimes in
the minibuffer (before the prompt), and that causes the minibuffer height to
increase by a whole character height. The box outline is only 1 pixel thick, but
those 2 pixels (box top + bottom) are enough to cause the faced character to be
larger than the one character height allocated.

Maybe (dunno) the same thing happens for bold - maybe the bold characters are a
pixel or two taller.

This was discussed in Emacs Devel long ago, but never fixed. Maybe there is no
easy fix, as long as the minibuffer must be an integral number of chars high.
Dunno.

Yes, it is annoying. We accommodate ascenders and descenders (e.g. in p and d)
as part of the character height, but we don't account for box outlines or
(apparently?) for the thickness of bolding.

HTH.







  reply	other threads:[~2009-05-15 13:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-14 19:36 bug#3285: 23.0.91; Messaging propertized text increases minibuffer height unnecessarily Chong Yidong
2009-05-15  3:47 ` Brent Goodrick
2009-05-15 13:57   ` Drew Adams [this message]
2009-05-21 15:05     ` Brent Goodrick
  -- strict thread matches above, loose matches on Subject: below --
2009-05-14  6:05 Brent Goodrick

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='003701c9d565$0ab09e50$0200a8c0@us.oracle.com' \
    --to=drew.adams@oracle.com \
    --cc=3285@emacsbugs.donarmstrong.com \
    --cc=bgoodr@gmail.com \
    --cc=cyd@stupidchicken.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.