unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#56388: Overline equivalent of x-underline-at-descent-line
@ 2022-07-04 18:25 Hendrik Rommeswinkel via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-07-05  1:51 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 5+ messages in thread
From: Hendrik Rommeswinkel via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-07-04 18:25 UTC (permalink / raw)
  To: 56388


[-- Attachment #1.1.1: Type: text/plain, Size: 905 bytes --]

Dear Emacs community,

I noticed that overline text is not as configurable as underline text. Using x-underline-at-descent-line, it is possible to choose between placing the underline at the baseline or the bottom line (I think the naming of this option is not quite right.). However, it is not possible to choose between placing the overline at the ascent line or the top line. Instead it is always at the top line. This makes overline very ugly when the height of faces differs on a line because the overline will appear at the very top of the line instead of on top of the font.

It would be nice if there would be an option x-overline-at-ascent-line which places the overline at the ascent line (instead of the top line).

Ideally, there are variables x-underline-position and x-overline-position which can take values bottom, descent, baseline and top, ascent, respectively.

Cheers,
Hendrik

[-- Attachment #1.1.2.1: Type: text/html, Size: 1711 bytes --]

[-- Attachment #1.2: publickey - rommeswi@proton.me - 0xA02357C6.asc --]
[-- Type: application/pgp-keys, Size: 725 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 249 bytes --]

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

* bug#56388: Overline equivalent of x-underline-at-descent-line
  2022-07-04 18:25 bug#56388: Overline equivalent of x-underline-at-descent-line Hendrik Rommeswinkel via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-07-05  1:51 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-07-05  3:14   ` Hendrik Rommeswinkel via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-07-05 11:25   ` Lars Ingebrigtsen
  0 siblings, 2 replies; 5+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-07-05  1:51 UTC (permalink / raw)
  To: Hendrik Rommeswinkel; +Cc: 56388

Hendrik Rommeswinkel <rommeswi@proton.me> writes:

> I noticed that overline text is not as configurable as underline
> text. Using x-underline-at-descent-line, it is possible to choose
> between placing the underline at the baseline or the bottom line (I
> think the naming of this option is not quite right.). However, it is
> not possible to choose between placing the overline at the ascent line
> or the top line. Instead it is always at the top line. This makes
> overline very ugly when the height of faces differs on a line because
> the overline will appear at the very top of the line instead of on top
> of the font.
>
> It would be nice if there would be an option x-overline-at-ascent-line
> which places the overline at the ascent line (instead of the top
> line).

Instead of making it a user option, how about making it an attribute for
the `:overline' face property?





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

* bug#56388: Overline equivalent of x-underline-at-descent-line
  2022-07-05  1:51 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-07-05  3:14   ` Hendrik Rommeswinkel via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-07-05 11:25   ` Lars Ingebrigtsen
  1 sibling, 0 replies; 5+ messages in thread
From: Hendrik Rommeswinkel via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-07-05  3:14 UTC (permalink / raw)
  To: 56388@debbugs.gnu.org


[-- Attachment #1.1: Type: text/html, Size: 1342 bytes --]

[-- Attachment #1.2: publicKey - rommeswi@proton.me - a02357c6.asc --]
[-- Type: application/pgp-keys, Size: 701 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 249 bytes --]

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

* bug#56388: Overline equivalent of x-underline-at-descent-line
  2022-07-05  1:51 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-07-05  3:14   ` Hendrik Rommeswinkel via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-07-05 11:25   ` Lars Ingebrigtsen
  2022-07-07 16:09     ` Hendrik Rommeswinkel via Bug reports for GNU Emacs, the Swiss army knife of text editors
  1 sibling, 1 reply; 5+ messages in thread
From: Lars Ingebrigtsen @ 2022-07-05 11:25 UTC (permalink / raw)
  To: Po Lu; +Cc: Hendrik Rommeswinkel, 56388

Po Lu <luangruo@yahoo.com> writes:

> Instead of making it a user option, how about making it an attribute for
> the `:overline' face property?

Yes, sounds like a good idea.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

* bug#56388: Overline equivalent of x-underline-at-descent-line
  2022-07-05 11:25   ` Lars Ingebrigtsen
@ 2022-07-07 16:09     ` Hendrik Rommeswinkel via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 0 replies; 5+ messages in thread
From: Hendrik Rommeswinkel via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-07-07 16:09 UTC (permalink / raw)
  To: 56388


[-- Attachment #1.1: Type: text/plain, Size: 668 bytes --]

I think the overline and underline face options could be
color, style, position where position is one of "top", "ascent" for overline and one of "base", "descent", "bottom" for underline.



Sent with Proton Mail secure email.

------- Original Message -------
On Tuesday, July 5th, 2022 at 8:25 PM, Lars Ingebrigtsen <larsi@gnus.org> wrote:


> Po Lu luangruo@yahoo.com writes:
> 

> > Instead of making it a user option, how about making it an attribute for
> > the `:overline' face property?
> 

> 

> Yes, sounds like a good idea.
> 

> --
> (domestic pets only, the antidote for overdose, milk.)
> bloggy blog: http://lars.ingebrigtsen.no

[-- Attachment #1.2: publickey - rommeswi@proton.me - 0xA02357C6.asc --]
[-- Type: application/pgp-keys, Size: 725 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 249 bytes --]

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

end of thread, other threads:[~2022-07-07 16:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-04 18:25 bug#56388: Overline equivalent of x-underline-at-descent-line Hendrik Rommeswinkel via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-07-05  1:51 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-07-05  3:14   ` Hendrik Rommeswinkel via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-07-05 11:25   ` Lars Ingebrigtsen
2022-07-07 16:09     ` Hendrik Rommeswinkel via Bug reports for GNU Emacs, the Swiss army knife of text editors

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