unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Terrible underline
@ 2008-03-06 15:46 Lennart Borgman (gmail)
  2008-03-06 21:35 ` David Kastrup
  0 siblings, 1 reply; 8+ messages in thread
From: Lennart Borgman (gmail) @ 2008-03-06 15:46 UTC (permalink / raw)
  To: Emacs Devel

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

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?

[-- Attachment #2: terrible-underline.png --]
[-- Type: image/png, Size: 9692 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: Terrible underline
@ 2008-03-08 18:57 Francesc Rocher
  2008-03-08 21:02 ` David Kastrup
  0 siblings, 1 reply; 8+ messages in thread
From: Francesc Rocher @ 2008-03-08 18:57 UTC (permalink / raw)
  To: lennart.borgman, emacs-devel

> "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




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

end of thread, other threads:[~2008-03-10 21:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-06 15:46 Terrible underline 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)
  -- strict thread matches above, loose matches on Subject: below --
2008-03-08 18:57 Francesc Rocher
2008-03-08 21:02 ` David Kastrup
2008-03-10 21:15   ` Francesc Rocher

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