From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: Using proportional fonts in Gnus
Date: Mon, 17 Apr 2006 00:37:34 -0400 [thread overview]
Message-ID: <87slocrfix.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87wtdpmbbn.fsf@catnip.gol.com> (Miles Bader's message of "Mon, 17 Apr 2006 06:59:08 +0900")
>> Nope. Emacs' support for proportional fonts is still pretty
>> immature.
> It's interesting to consider how one might do this in an "Emacsy"
> manner convenient for elisp programmers.
> For instance a "super tab" text property saying "align to colum N (or
> leave M units of whitespace if already there)"; maybe some degree of
> indirection would be useful so one need not rewrite the buffer text to
> change N dynamically.
I'm not quite sure what the OP's "column based display" really entails, but
a related problem I've bumped into several times already is that
the :align-to display property helps handle left-aligned columns of
proportional-text, but there's no easy way to cut the text at the right
point if it overflows, and there's no easy way to handle right-alignment.
In http://www.iro.umontreal.ca/~monnier/elisp/mpc.png you can see in the
songs buffer (bottom right) that the last three song titles were truncated
too soon bu t that the album title OTOH was truncated too late (thus
pushing the Artist name a bit further than expected). The "Time" is
right-laigned and in this case it worked out all right because digits are
pretty evenly spaced and the "Time" string is overall fairly comparable
(the length of "m" compensates the length of "i") so the "e" of "Time" goes
only a tiny bit further than the actual time entries.
Stefan
next prev parent reply other threads:[~2006-04-17 4:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <u8xue81xb.fsf@yahoo.co.uk>
[not found] ` <m3r73xfmhn.fsf@quimbies.gnus.org>
2006-04-16 21:59 ` Using proportional fonts in Gnus Miles Bader
2006-04-17 4:37 ` Stefan Monnier [this message]
2006-04-17 6:43 ` Eli Zaretskii
2006-04-17 7:03 ` Miles Bader
2006-04-17 17:56 ` Richard Stallman
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=87slocrfix.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).