[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Underline fontification
From: |
Hendrik Rommeswinkel |
Subject: |
Re: Underline fontification |
Date: |
Mon, 04 Jul 2022 13:25:44 +0000 |
Hi Arash,
I am on Spacemacs so the look may differ on plain emacs.
Here is the difference before (left) and after (right) adjusting the
overline-margin.
https://imgur.com/a/27f3bp0
As one can see, changing overline-margin also prevents the text from becoming
"taller" after placing an overline. (By "taller" I mean the way $X^Y$ makes the
text taller as well.)
Cheers
Hendrik
------- Original Message -------
On Monday, June 20th, 2022 at 9:24 PM, Arash Esbati <arash@gnu.org> wrote:
> Hendrik Rommeswinkel rommeswi@proton.me writes:
>
> > Looking through some old emacs bugreports I just found out about the
> > variable overline-margin. If set to 0 instead of 2, overlines actually
> > look great. They are exactly symmetric to underlines with this
> > setting. So one could add overline fontification by adding an overline
> > font and setting overline-margin to 0 in auctex buffers.
>
>
> Can you please post some small screenshots exhibiting the difference? I
> mean, `overline-margin' has this docstring: ,----[ C-h v overline-margin RET
> ] | overline-margin is a variable defined in ‘C source code’. | | Its value
> is 2 | | Space between overline and text, in pixels. | The default value is
> 2: the height of the overline (1 pixel) plus 1 pixel | margin to the
> character height.` ----
>
> and `underline-minimum-offset' has this: ,----[ C-h v
> underline-minimum-offset RET ] | underline-minimum-offset is a variable
> defined in ‘C source code’. | | Its value is 1 | | Minimum distance between
> baseline and underline. | This can improve legibility of underlined text at
> small font sizes, | particularly when using variable
> ‘x-use-underline-position-properties’ | with fonts that specify an
> UNDERLINE_POSITION relatively close to the | baseline. The default value is
> 1.` ----
>
> Is the distance between the two lines so huge?
>
> Best, Arash
publickey - rommeswi@proton.me - 0xA02357C6.asc
Description: application/pgp-keys
signature.asc
Description: OpenPGP digital signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Underline fontification,
Hendrik Rommeswinkel <=