[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A patch for enforcing double-width CJK character display
From: |
黄建忠 |
Subject: |
Re: A patch for enforcing double-width CJK character display |
Date: |
Tue, 17 Apr 2012 14:10:24 +0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120327 Thunderbird/10.0.2 |
Miles,
Another try:
Another "Lucida Sans TypeWriter" from Oracle JDK 1.6.
"Sazanami Mincho" from
"http://ja.cooltext.com/Download-Font-%E3%81%95%E3%81%96%E3%81%AA%E3%81%BF%E6%98%8E%E6%9C%9D+Sazanami+Mincho"
The width of this "lucida" font is correct in Emacs, and the font
display had no problem after cjk fix.
Maybe your system have a buggy "Lucida Sans TypeWriter" font, you can
try the lucida font released with JDK.
Hope the problem can be fixed.
于 2012年04月17日 13:52, Miles Bader 写道:
> Werner LEMBERG <address@hidden> writes:
>>> 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.
>> Mhmm. The silent assumption of making a CJK and ASCII font fit is
>> that double-width characters are really double width in relation to
>> single-width characters. In your example, the width of two ASCII
>> characters is 18px, while one CJK character is 12px. Such two fonts
>> simply don't fit, and no clever algorithm will be able to make them
>> ever fit without scaling.
> Er, wait, what?
>
> It can be done trivially, by adding 3 pixels of whitespace on both
> sides of every CJK character...
>
> [Which is the source of my concern: that in some cases it might be so
> much whitespace that the result looks funny.]
>
> -miles
>
--
Huang JianZhong
lucida-sazanami.jpg
Description: JPEG image
- Re: A patch for enforcing double-width CJK character display, (continued)
- Re: A patch for enforcing double-width CJK character display, Miles Bader, 2012/04/16
- Re: A patch for enforcing double-width CJK character display, 黄建忠, 2012/04/16
- Re: A patch for enforcing double-width CJK character display, Miles Bader, 2012/04/16
- Re: A patch for enforcing double-width CJK character display, 黄建忠, 2012/04/16
- Re: A patch for enforcing double-width CJK character display, Miles Bader, 2012/04/17
- Re: A patch for enforcing double-width CJK character display, Werner LEMBERG, 2012/04/17
- Re: A patch for enforcing double-width CJK character display, 黄建忠, 2012/04/17
- Re: A patch for enforcing double-width CJK character display, Miles Bader, 2012/04/17
- Re: A patch for enforcing double-width CJK character display, Werner LEMBERG, 2012/04/17
- Re: A patch for enforcing double-width CJK character display, Miles Bader, 2012/04/17
- Re: A patch for enforcing double-width CJK character display,
黄建忠 <=
- Re: A patch for enforcing double-width CJK character display, Miles Bader, 2012/04/17
- Re: A patch for enforcing double-width CJK character display, Werner LEMBERG, 2012/04/17
- Re: A patch for enforcing double-width CJK character display, Miles Bader, 2012/04/17
- Re: A patch for enforcing double-width CJK character display, Werner LEMBERG, 2012/04/17
- Re: A patch for enforcing double-width CJK character display, 黄建忠, 2012/04/17
- Re: A patch for enforcing double-width CJK character display, Werner LEMBERG, 2012/04/17
- Re: A patch for enforcing double-width CJK character display, James Cloos, 2012/04/17
- Re: A patch for enforcing double-width CJK character display, 黄建忠, 2012/04/17
- Re: A patch for enforcing double-width CJK character display, 黄建忠, 2012/04/16
- Re: A patch for enforcing double-width CJK character display, Kenichi Handa, 2012/04/18