|
From: | 黄建忠 |
Subject: | Re: A patch for enforcing double-width CJK character display |
Date: | Tue, 17 Apr 2012 10:00:18 +0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120327 Thunderbird/10.0.2 |
于 2012年04月17日 08:39, Miles Bader 写道:
case 1: size = 13 ASCII: Lucida Sans Typewriter [9 pix per char] CJK: さざなみ明朝 [12 pix per char] case 2: size = 11 ASCII: Lucida Sans Typewriter [7 pix per char] CJK: さざなみ明朝 [10 pix per char]
1, If you use Sans font as default font, the patch will just ignore it and never adjust the width padding , since it is wrong setting.
2, For Sans font, it's variable pitch, every glyph in the font is different width.
The C-u C-x = report a font spec string.Looks like: xft:-unknown-Monaco-normal-normal-normal-*-17-*-*-*-m-0-iso10646-1 (#x4B)
Note the "17" here is FONT_PIXEL_SIZE from FcPattern of fontconfig, not Font Size in common sense, It should be same for CJK font and English font.
So Im wondering how you get the pixelsize of fonts?
p.s. "size" here is what Emacs "C-u C-x =" reports, which is _not_ the same as the sizes used in the Emacs font dialog... [kinda annoying, that...] -miles
-- Huang JianZhong
[Prev in Thread] | Current Thread | [Next in Thread] |