From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Using overlays to hide emojis while preserving fill
Date: Sat, 22 Jun 2024 10:48:46 +0300 [thread overview]
Message-ID: <8634p5ju3l.fsf@gnu.org> (raw)
In-Reply-To: <CADQMGARpj7obkmj7w8g-RDsGfWeo10Oxqby=tObjywL9SBjSkw@mail.gmail.com> (message from Psionic K on Sat, 22 Jun 2024 11:21:39 +0900)
> From: Psionic K <psionik@positron.solutions>
> Date: Sat, 22 Jun 2024 11:21:39 +0900
>
> The animations in dslide occasionally reveal one character at a time.
> My initial implementation just sets the foreground to the background
> color. This doesn't work for emojis. I suppose I can use the display
> property, but I need to preserve the fill size in that case. What's a
> consistent way to obscure the text while preserving its dimensions?
If you are asking how to compute the width of text (including text
that shows Emoji), then I'd expect string-pixel-width to be (at least
part of) the answer.
prev parent reply other threads:[~2024-06-22 7:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-22 2:21 Using overlays to hide emojis while preserving fill Psionic K
2024-06-22 7:48 ` Eli Zaretskii [this message]
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=8634p5ju3l.fsf@gnu.org \
--to=eliz@gnu.org \
--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).