0

I'm using Inconsolata font in emacs. The setting looks like

(set-face-attribute
   'default nil
   :font (font-spec :name "-*-Inconsolata-bold-italic-normal-*-*-*-*-*-m-0-iso10646-1"
                    :weight 'normal
                    :slant 'normal
                    :size 12.0))

But the wave style underline has some issue like

enter image description here

The bottom of the underline is strip by the next line. Using Iosevka everything is just fine

enter image description here

How can I fixed this without changing to another font? Changing the font size doesn't help. Thanks.

2
  • Looks fine to me. What's the “issue”?
    – db48x
    Commented Mar 13, 2021 at 14:16
  • @db48xThe bottom of the underline is strip by the next line. Commented Mar 13, 2021 at 14:24

2 Answers 2

0

This is not really a problem with Emacs. All that is happening is that the font metrics for the font you've chosen don't leave quite enough room for the wavy underlines (the descenders are not quite as tall as the wavy underline). You could increase the line spacing of the face to compensate. I suppose it would be a little nicer if Emacs drew the wavy underline in a second pass after it had drawn all of the text, but that's a lot of complications for a very minor graphical difference.

1
  • Please consider adding info about how to increase the line spacing to your answer.
    – Drew
    Commented Mar 14, 2021 at 3:33
0

I think doing (setq-default line-spacing 0.25) might solve your problem (0.25 is just an dummy number, you'll need to adjust this). There's more information about line-height at https://www.gnu.org/software/emacs/manual/html_node/elisp/Line-Height.html (or directly in Emacs, of course: M-x info-emacs-manual).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.