all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#71039: :box :line-width and :underline :position should accept fractional sizes
@ 2024-05-18 14:52 JD Smith
  2024-05-18 16:06 ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: JD Smith @ 2024-05-18 14:52 UTC (permalink / raw)
  To: 71039

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


For modes which layout mostly on fixed character-width grids, it is convenient to preserve that layout even as the text-scale changes.  Most of the size related attributes associated with display and face properties accommodate this style well, since they accept floating point values which adapt to the underlying char size.  These include face height, display height and raise, specified space dimensions, etc.   

There are, however, two face size attributes which are hard-coded in pixels: :box :linewidth and :underline :position.  It would be very convenient if these also accepted fractional floating point values.  E.g. a face attribute of:

:box (:line-width (0.5 . -0.25)) 

would indicate a box with half a char width outside padding left & right, and one-quarter char height padding above and below.

In addition, :box would be even more powerful, and obviate the use of SVG styling in many situations, if :box :line-width optionally accepted a list of four parameters for box dimensions, one for each side:

:line-width (left right top bottom)

naturally as either pixel or floating point fractions.


[-- Attachment #2: Type: text/html, Size: 1699 bytes --]

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

end of thread, other threads:[~2024-05-19 13:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-18 14:52 bug#71039: :box :line-width and :underline :position should accept fractional sizes JD Smith
2024-05-18 16:06 ` Eli Zaretskii
2024-05-19  1:32   ` JD Smith
2024-05-19  6:37     ` Eli Zaretskii
2024-05-19 13:45       ` JD Smith

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.