From: Eli Zaretskii <eliz@gnu.org>
To: Eric Abrahamsen <eric@ericabrahamsen.net>
Cc: 33232@debbugs.gnu.org
Subject: bug#33232: `gnus-summary-line-format' padding doesn’t work in gui when there are multiple-column-width characters
Date: Fri, 02 Nov 2018 08:42:06 +0200 [thread overview]
Message-ID: <838t2cgev5.fsf@gnu.org> (raw)
In-Reply-To: <87lg6cjtr5.fsf@ericabrahamsen.net> (message from Eric Abrahamsen on Thu, 01 Nov 2018 15:52:14 -0700)
> From: Eric Abrahamsen <eric@ericabrahamsen.net>
> Date: Thu, 01 Nov 2018 15:52:14 -0700
>
> Someone just reported something similar on the org list, that
> `string-width' doesn't return the actual width occupied by the string,
> which you'd think would be the whole point.
string-width does the best job it can, but you cannot hope to get
exact results when using variable-width fonts. What string-width
returns should be correct on TTY frames, and only an approximation of
GUI frames, when you mix scripts and thus fonts in the same string.
For pixel-level accuracy on display, you must use display 'space' and
'align' properties.
next prev parent reply other threads:[~2018-11-02 6:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-01 21:58 bug#33232: `gnus-summary-line-format' padding doesn’t work in gui when there are multiple-column-width characters Garreau, Alexandre
2018-11-01 22:52 ` Eric Abrahamsen
2018-11-01 23:26 ` Noam Postavsky
2018-11-01 23:52 ` Eric Abrahamsen
2018-11-02 6:36 ` Eli Zaretskii
2018-11-02 19:15 ` Eric Abrahamsen
2018-11-02 6:43 ` Eli Zaretskii
2018-11-02 6:42 ` Eli Zaretskii [this message]
2019-06-22 13:19 ` Lars Ingebrigtsen
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=838t2cgev5.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=33232@debbugs.gnu.org \
--cc=eric@ericabrahamsen.net \
/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.
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.