[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unfortunate pixel width of one TAB
From: |
Kenichi Handa |
Subject: |
Re: Unfortunate pixel width of one TAB |
Date: |
Thu, 30 Dec 2004 21:35:58 +0900 (JST) |
User-agent: |
SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.3.50 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) |
Richard Stallman <address@hidden> 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
address@hidden