|Subject:||Re: A patch for enforcing double-width CJK character display|
|Date:||Mon, 16 Apr 2012 13:40:35 +0800|
|User-agent:||Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120327 Thunderbird/10.0.2|
Got it, I will try this font.|
by the way, You can add a line to your .emacs.
(set-fontset-font "fontset-default" 'han "FONTFAMILY FONTSIZE" )
replace "FONTFAMILY" and FONTSIZE according to your environment.
And FONTSIZE can be ignored if you had no need to specify a size for this font.
于 2012年04月16日 13:27, Miles Bader 写道:
黄建忠 <address@hidden> writes:Would you please provide some example characters and such a font to help us make it better?Here's an example from my (Debian) system; the font I chose in Emacs is "Droid Sans Mono"; the "x11 size" is 13 [which isn't exactly the size chosen in the UI; fontconfig sizes and X font sizes seem to be only loosely related... :( ] I set the font to "Droid Sans Mono", and the Japanese font Emacs automatically chose was "きろ字". I don't know _why_ Emacs chose that font, as other apps don't seem to -- If I select Droid S M in GTK apps, for instance, they use something much better looking, probably "Droid Fallback" (which is a matching font for Droid S M). I've attached an image file showing what this looks like on my computer. The things I notice: (1) The font chosen by Emacs for Japanese might be a bit odd, and doesn't seem to match what other apps choose. (2) The "きろ字" font is already pretty widely spaced, maybe near the limit of readability IMO. (3) It looks like forcing CJK alignment to 2*ASCII will increase the width of characters in this font by about 30%. Given the already very wide spacing, I think the result might look funny. [ (4) If I grow or shrink the font-size, the ASCII and Japanese grow by different, and varying amounts (that is, there are obvious "jumps" in the size increases, and the jumps occur at different places for the ASCII font and the Japanese font); my guess is that this is probably due to rounding by the font renderer. So there will be. ] Now that I think about it, I'd say that the problem seems to lie more with Emacs' choice of fonts for Japanese (both the funny automatic choice, and the lack of good methods for users to tweak it). Thanks, -Miles
-- Huang JianZhong
|[Prev in Thread]||Current Thread||[Next in Thread]|