all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Line spacing too large for TTF?
@ 2009-09-21 12:41 David Engster
  2009-09-21 13:14 ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: David Engster @ 2009-09-21 12:41 UTC (permalink / raw)
  To: emacs-devel

I'm a bit confused regarding the default line spacing in Emacs.

I'm using Emacs 23.1, started with 'emacs -Q'. Then I evaluate

(ucs-insert #x2503)

which inserts the box drawing 'heavy vertical' unicode character. I
think with the default line-spacing set to 'nil', these characters
should connect when repeated in the following lines, but they
don't. With bitmap fonts, there's usually a gap of 1 pixel, and with a
TTF like 'Bitstream Vera Sans Mono', it's about 3 pixels.

I'm not sure if this is intentional or a bug? The reason I'm asking is
that when using a TTF with very small height, it seems to me that
considerable space is wasted with these spacings between the lines. For
an example, look at the left sidebar in this screenshot:

http://www.randomsample.de/minimap-ex3.jpg

I'd like this sidebar to be more 'vertically condensed'.

Regards,
David




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

* Re: Line spacing too large for TTF?
  2009-09-21 12:41 Line spacing too large for TTF? David Engster
@ 2009-09-21 13:14 ` Stefan Monnier
  2009-09-21 18:49   ` David Engster
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2009-09-21 13:14 UTC (permalink / raw)
  To: emacs-devel

> (ucs-insert #x2503)

> which inserts the box drawing 'heavy vertical' unicode character. I
> think with the default line-spacing set to 'nil', these characters
> should connect when repeated in the following lines, but they
> don't. With bitmap fonts, there's usually a gap of 1 pixel, and with a
> TTF like 'Bitstream Vera Sans Mono', it's about 3 pixels.

Please use M-x report-emacs-bug for such problems, so we get more data
from you and so it gets recorded in the bugtracker.


        Stefan




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

* Re: Line spacing too large for TTF?
  2009-09-21 13:14 ` Stefan Monnier
@ 2009-09-21 18:49   ` David Engster
  0 siblings, 0 replies; 3+ messages in thread
From: David Engster @ 2009-09-21 18:49 UTC (permalink / raw)
  To: emacs-devel

Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> which inserts the box drawing 'heavy vertical' unicode character. I
>> think with the default line-spacing set to 'nil', these characters
>> should connect when repeated in the following lines, but they
>> don't. With bitmap fonts, there's usually a gap of 1 pixel, and with a
>> TTF like 'Bitstream Vera Sans Mono', it's about 3 pixels.
>
> Please use M-x report-emacs-bug for such problems, so we get more data
> from you and so it gets recorded in the bugtracker.

Well, I am not sure this is really a bug, but I sent a bug report now
anyway. Also, I noticed that the 3 pixels with the 'Bitstream' font I
reported here were due to that font not having box drawing characters,
so those were in fact drawn with another (smaller) font, which lead to
the large line spacing. The issue remains with other fonts, though.

Regards,
David




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

end of thread, other threads:[~2009-09-21 18:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-21 12:41 Line spacing too large for TTF? David Engster
2009-09-21 13:14 ` Stefan Monnier
2009-09-21 18:49   ` David Engster

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.