GNU bug report logs -
#71039
:box :line-width and :underline :position should accept fractional sizes
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
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.
[Message part 2 (text/html, inline)]
This bug report was last modified 1 year and 27 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.