From: "Erik Präntare" <erik.prantare@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Pixel specification for ascent in image descriptors
Date: Fri, 19 Jul 2024 13:35:49 +0000 [thread overview]
Message-ID: <CAP0Bsmd_VoS9LnWh9kQKGzA0GK22HyZOawcDVbmqUYWY4=P=Xg@mail.gmail.com> (raw)
I am working on a package which requires overlaying some glyphs with an svg
image. This image should appear as the original glyph, but may be taller
than one as I am rendering small indicators above them. To appear as the
regular glyph, I need to specify the :ascent image property to be the same
as for the glyph it replaces. However, this seems to only be possible to
do as a fraction of the image height (expressed as an integer percentage).
This seems to sometimes cause small jitters from off-by-one pixel errors.
Is it possible to specify the ascent of the image in the amount of pixels
instead, similar to how one can with pixel specifications for spaces?
next reply other threads:[~2024-07-19 13:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-19 13:35 Erik Präntare [this message]
2024-07-20 6:47 ` Pixel specification for ascent in image descriptors Michael Heerdegen via Users list for the GNU Emacs text editor
2024-07-21 13:14 ` Michael Heerdegen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAP0Bsmd_VoS9LnWh9kQKGzA0GK22HyZOawcDVbmqUYWY4=P=Xg@mail.gmail.com' \
--to=erik.prantare@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).