all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Kenichi Handa <handa@m17n.org>
Cc: emacs-devel@gnu.org
Subject: Re: Zero height line causing arithmetic errors
Date: Thu, 19 Jun 2008 10:13:31 -0400	[thread overview]
Message-ID: <jwvskv9plea.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <E1K98hn-0008QM-UF@etlken.m17n.org> (Kenichi Handa's message of "Thu, 19 Jun 2008 10:12:51 +0900")

> For the problem of FRAME_SMALLEST_FONT_HEIGHT being set to
> 0, I installed the similar change.

Thanks.

> And, for the problem of too tall line-height, I found the
> culprit is XftTextExtents8.  When the pixelsize of a font is

I think the problem I've been seeing is a different one.  While trying
to solve some other problem I discovered that my problem was linked to
issues where Xresource font settings seem impose themselves too
strongly, so the font-backend used was most likely X rather than xft (in
my case) and the problem disappeared if I removed those font settings
and let the font be specified some other way.  I.e. I'm glad you found
your bug, but mine is still around, and is probably
elsewhere altogether.

> But, note that the line height is still 2, not 1.  That's
> because the display engine calculate the line height by
> ascent+descent, and both ascent and descent doesn't become 0
> in the structure XftFont even though `height' member is 1.
> It may be another Xft (or freetype) problem.

Yes, I saw that.  I found it curious, but was actually happy about it:
I prefer my line to be 2 pixels thick (Emacs-22 makes it even thicker,
BTW).


        Stefan




      parent reply	other threads:[~2008-06-19 14:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-14 17:35 Zero height line causing arithmetic errors Stefan Monnier
2008-06-19  1:12 ` Kenichi Handa
2008-06-19  1:19   ` Dan Nicolaescu
2008-06-19 14:13   ` Stefan Monnier [this message]

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=jwvskv9plea.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=handa@m17n.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.