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: 黄建忠
Subject: Re: A patch for enforcing double-width CJK character display
Date: Tue, 17 Apr 2012 17:27:34 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120327 Thunderbird/10.0.2

于 2012年04月17日 17:07, James Cloos 写道:
>>>>>> "MB" == Miles Bader <address@hidden> writes:
> MB> p.s. "size" here is what Emacs "C-u C-x =" reports, which is _not_ the
> MB> same as the sizes used in the Emacs font dialog... [kinda annoying, 
> that...]
>
> If that means the size in the XLFD-ish string after "display: by this
> font" in the C-u C-x = buffer, that looks to be the pixelheight.

Yes, for xftfont backend, these properties is set according to FcPattern
when "xftfont_open" invoked.
The number here is "FC_PIXEL_SIZE" from a FcPattern.
>
> (In my case I get:
>
>     xft:-unknown-WenQuanYi Zen 
> Hei-normal-normal-normal-*-21-*-*-*-*-0-iso10646-1 (#x7390)
>
> for the first character in the CC header above.)
>
> The font dialog probably wants the point size.
>
> Things would be easier were Emacs to drop the XLFD-style strings
> for xft: and/or fc: prefixed fonts and use fontconfig patterns.
>
> The XLFD-style strings only should be used for actual XLFDs for
> X11 server-side fonts.
>
> -JimC


-- 
Huang JianZhong




reply via email to

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