From: "Francesc Rocher" <francesc.rocher@gmail.com>
To: lennart.borgman@gmail.com, emacs-devel@gnu.org
Subject: Re: Terrible underline
Date: Sat, 8 Mar 2008 19:57:43 +0100 [thread overview]
Message-ID: <ade856a30803081057t6f6adeebn624f1f6b88c63e1e@mail.gmail.com> (raw)
> "Lennart Borgman (gmail)" <address@hidden> writes:
>> David Kastrup wrote:
>>> "Lennart Borgman (gmail)" <address@hidden> writes:
>>>
>>> I get terrible underlines with CVS Emacs 23, see the attached
>>> picture. I guess this has something to do with the new font handling,
>>> or?
>>
>> They look fine to me. Have you looked at the screenshot? Maybe it
>> captures the way things should look rather than how they actually do?
>>
> Thanks, yes I looked at the screen shot. There is no space
> between the characters and the underline. To me that is nearly
> unreadable.
>
> It looked much better before the merge I think.
Yes, you're right. It's time to get support for the variable
'x-underline-at-descent-line' under win32. Before the merge it
was not necessary, but now this patch should be installed:
---8<------8<------8<------8<------8<------8<------8<------8<---
--- w32term.c 3 Mar 2008 06:32:12 -0000 1.284
+++ w32term.c 8 Mar 2008 18:50:46 -0000
@@ -2950,11 +2950,13 @@
#ifdef USE_FONT_BACKEND
if (enable_font_backend)
{
- if (s->face->font)
- /* In the future, we must use information of font. */
- y = s->ybase + (s->face->font->max_bounds.descent + 1) / 2;
- else
- y = s->y + s->height - h;
+ y = s->y + s->height - h;
+ if (!x_underline_at_descent_line)
+ {
+ if (s->face->font)
+ /* In the future, we must use information of font. */
+ y = s->ybase + (s->face->font->max_bounds.descent + 1) / 2;
+ }
}
else
#endif
---8<------8<------8<------8<------8<------8<------8<------8<---
Then,
(setq x-underline-at-descent-line t)
should make the underlining readable (it should look as before).
Please note that I have no write access to CVS so, if approved, the patch
should be updated by some maintainer.
--
Francesc Rocher
next reply other threads:[~2008-03-08 18:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-08 18:57 Francesc Rocher [this message]
2008-03-08 21:02 ` Terrible underline David Kastrup
2008-03-10 21:15 ` Francesc Rocher
-- strict thread matches above, loose matches on Subject: below --
2008-03-06 15:46 Lennart Borgman (gmail)
2008-03-06 21:35 ` David Kastrup
2008-03-06 23:20 ` Lennart Borgman (gmail)
2008-03-06 23:31 ` David De La Harpe Golden
2008-03-06 23:44 ` Lennart Borgman (gmail)
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=ade856a30803081057t6f6adeebn624f1f6b88c63e1e@mail.gmail.com \
--to=francesc.rocher@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=lennart.borgman@gmail.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.