emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A patch for enforcing double-width CJK character display


From: Miles Bader
Subject: Re: A patch for enforcing double-width CJK character display
Date: Tue, 17 Apr 2012 13:08:49 +0900

黄建忠 <address@hidden> writes:
>>> So I'm wondering how you get the pixelsize of fonts?
>> I used "xzoom" to magnify the display, and counted the pixels... :]
>
> Wow :-D
> But a wrong way to get pixelsize:-(
>
> You have a very BIG BIG BIG misunderstanding of "glyph pixelsize".

That's silly.

It doesn't _matter_ what some definition says somewhere.

In the end, what _actually matters_ is how the characters are
displayed -- and the best way to judge how they are displayed is to
_look at the display_.

[The pixel counts I gave, BTW are actually "advance counts" -- the
number of pixels between the left edge of one character and the left
edge of the next character.]

So the point is that the numbers I have should be accurate in
terms of how the characters are actually displayed.

To reiterate:

 1) In case 1, a 20-character sequence of ASCII characters takes 180
    pixels to display, and a 10-character sequence of CJK characters
    takes 120 pixels to display.

 2) So, if you force the CJK characters to fit 2 * ASCII width, then
    you obviously need to add (180 - 120) = 60 pixels of extra space
    to those 10 CJK characters.

 3) That's 6 extra pixels of whitespace (in addition to existing
    whitespace) per CJK character.

 4) Since each CJK character is 12-pixels wide, that increases the
    character advance spacing by 50%...

Anyway, I'll try your patch, and see how it looks in reality.

Thanks,

-miles

-- 
Zeal, n. A certain nervous disorder afflicting the young and inexperienced.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]