From: Kenichi Handa <handa@m17n.org>
Cc: emacs-devel@gnu.org
Subject: Re: Unfortunate pixel width of one TAB
Date: Thu, 30 Dec 2004 21:35:58 +0900 (JST) [thread overview]
Message-ID: <200412301235.VAA28775@etlken.m17n.org> (raw)
In-Reply-To: <E1Cjkic-0004kO-AN@fencepost.gnu.org> (message from Richard Stallman on Wed, 29 Dec 2004 15:46:54 -0500)
Richard Stallman <rms@gnu.org> writes:
>> (2) Make a new macro FONT_SPACE_WIDTH that returns the width
>> of space glyph of the font of the frame. We can make a new
>> member `space_width' in the struct frame and make x_new_font
>> sets it value.
>> (3) Calculate tab width based on FONT_SPACE_WIDTH.
>> That might be good. Or we could do this without changing FONT_WIDTH.
>> That means do just 2 and 3, not 1.
>> But, shouldn't we postpone such a change until the next
>> release?
>> This is a bug fix. We should do it now.
> Ok, I'll work on it. Please wait for a while.
> Please reply to this when it is done.
I've just installed these changes for X:
(1) Set FRAME_COLUMN_WIDTH to the average with of a font.
average width is got from AVERAGE_WIDTH font property. If
the property doesn't exist, calculate the average of SPC
to TILDA (perhaps there exists a better method).
(2) Set FRAME_SPACE_WIDTH (new macro) to the space width of
the frame's font, and use it for calculating tab width.
Similar change will be necessary for the other platforms.
---
Ken'ichi HANDA
handa@m17n.org
next prev parent reply other threads:[~2004-12-30 12:35 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-05 16:04 Unfortunate pixel width of one TAB Markus Gritsch
2004-12-27 4:10 ` Richard Stallman
2004-12-27 9:37 ` Markus Gritsch
2004-12-27 11:54 ` Florian Weimer
2004-12-27 22:35 ` Richard Stallman
2004-12-27 22:35 ` Richard Stallman
2004-12-27 13:26 ` Kenichi Handa
2004-12-27 14:07 ` Markus Gritsch
2004-12-28 4:57 ` Richard Stallman
2004-12-29 1:32 ` Kenichi Handa
[not found] ` <E1Cjkic-0004kO-AN@fencepost.gnu.org>
2004-12-30 12:35 ` Kenichi Handa [this message]
2004-12-30 20:59 ` 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=200412301235.VAA28775@etlken.m17n.org \
--to=handa@m17n.org \
--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).