GNU bug report logs -
#54688
29.0.50; Sliced image in margin looks bad
Previous Next
Full log
View this message in rfc822 format
> From: dalanicolai <dalanicolai <at> gmail.com>
> Date: Sun, 3 Apr 2022 13:03:27 +0200
> Cc: 54688 <at> debbugs.gnu.org
>
> Playing around with :ascent, makes possible to keep the line-pixel-height fixed.
>
> So in the following I simply use `insert-image`. Without the :ascent, the
> 'line-pixel-height' increases when inserting another character. With the
> :ascent it is possible to reduce this 'increase'. For me the increase is 0
> when I use an ascent value of 80.
> (below the used code)
>
> (with-current-buffer (get-buffer-create "test")
> (setq left-margin-width 5)
> (insert-image (svg-image (let* ((ph (line-pixel-height))
> (size ph)
> (svg (svg-create size size)))
> (svg-circle svg ph ph ph :fill "red")
> svg)
> :ascent 80))
> (switch-to-buffer (current-buffer)))
Does this mean the problem is solved, and we can close this bug?
This bug report was last modified 3 years and 43 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.