emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Making `x-underline-at-descent-line' a face attribute


From: Po Lu
Subject: Re: Making `x-underline-at-descent-line' a face attribute
Date: Tue, 11 Jan 2022 08:47:34 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

> Can you post some tests to run and see if it works OK?

Here you go:

  ;; Underline should appear at 3 pixels above the descent line.
  (set-face-attribute 'default nil :underline '(:position 3))

  ;; Underline should appear at the descent line.
  (set-face-attribute 'default nil :underline '(:position 0))

  ;; Underline should appear at the descent line.
  (set-face-attribute 'default nil :underline '(:position t))

  ;; Underline should appear at the default location determined by
  ;; x-use-underline-position-properties.
  (set-face-attribute 'default nil :underline '(:position nil))

Thanks.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]