unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Xah Lee <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Using proportional (variable-width) fonts in Emacs23
Date: Mon, 28 Mar 2011 16:01:41 -0700 (PDT)	[thread overview]
Message-ID: <d9517f01-8cfa-4385-abb1-9bfb84ae7da7@k10g2000prh.googlegroups.com> (raw)
In-Reply-To: mailman.0.1301334352.1646.help-gnu-emacs@gnu.org

On Mar 28, 9:22 am, Erin Brinkley <erin_brink...@yahoo.com> wrote:
> Hi!
>
> I'm using Emacs 23 now and LOVE using proportional fonts! (AKA variable width fonts.) It FINALLY makes Emacs look beautiful, makes text easy to read.
>
> But I discovered a huge problem: the fill and word wrap commands are hard coded to work for monospaced fonts only! For instance the fill-column is based on monospace fonts: if you use a proportional font and set the fill column to what you think is a reasonable number, you'll soon find out that you are WRONG and you get extra whitespace at the end of a line, and words will wrap! The only way out is to set the fill-column to an insanely low number, and that's not a real solution either!
>
> I saw a copy of the old Emacs 21 manual online where it says that yes, you can use variable width fonts but the fill and wrap commands aren't yet set up for it. Something about how they were working on it. I'm curious how that's been going over the years. Is there any support for these fonts in Emacs now? Anyone know of a hack - kludge - tip - workaround I can try in the meantime? I love how this looks but admit to going crazy here with all my documents having these weird wrap problems.
>
> Appreciate the help everyone!

as Eli Z & Tassilo H mentioned, fill-column inserts line break char at
fixed number of chars per line. It's used to reformat computer code or
email that require line breaks. This command isn't designed for visual
wrap as the notion of margin in word processors. What you want is
probably visual-line-mode.

However, i wanted to say that i also use variable-width font all the
time (often even when working in dired or python), and fill-column
still works fine for visual purposes. Not quite sure what you mean
weird wraps...

 Xah


       reply	other threads:[~2011-03-28 23:01 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.0.1301334352.1646.help-gnu-emacs@gnu.org>
2011-03-28 23:01 ` Xah Lee [this message]
2011-03-28 16:22 Using proportional (variable-width) fonts in Emacs23 Erin Brinkley
2011-03-28 18:29 ` Eli Zaretskii
2011-03-28 18:30 ` Tassilo Horn
     [not found] ` <mailman.5.1301337042.1646.help-gnu-emacs@gnu.org>
2011-03-28 23:58   ` Uday Reddy
2011-03-29  2:00     ` rusi
2011-03-29 19:28       ` Uday Reddy
2011-03-30  2:47         ` rusi
2011-03-30  8:33           ` Uday Reddy
2011-03-30 13:30             ` Pascal J. Bourguignon
2011-03-30 15:20               ` rusi
2011-03-30 15:53                 ` Pascal J. Bourguignon
2011-03-30 18:14                   ` Eli Zaretskii
2011-03-30 19:49                     ` PJ Weisberg
2011-03-30 20:29                       ` Eli Zaretskii
     [not found]                   ` <mailman.8.1301508895.9824.help-gnu-emacs@gnu.org>
2011-03-31  4:58                     ` Stefan Monnier
2011-03-31 18:42                       ` Eli Zaretskii
     [not found]                       ` <mailman.13.1301596981.19576.help-gnu-emacs@gnu.org>
2011-03-31 19:38                         ` Pascal J. Bourguignon
2011-03-31 19:51                           ` Eli Zaretskii
2011-04-01 17:26                         ` Stefan Monnier
2011-03-30 16:42               ` Peter Dyballa
2011-03-30  9:00 ` Thien-Thi Nguyen

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=d9517f01-8cfa-4385-abb1-9bfb84ae7da7@k10g2000prh.googlegroups.com \
    --to=xahlee@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).