What does this mean? Xft can be initialized from X Resource?

FKtPp m_pupil at yahoo.com.cn
Fri Nov 2 10:22:31 EDT 2007


On Thu, Nov 01, 2007 at 11:49:57AM +0100, Aidan Kehoe wrote:
> 
>  Ar an chéad lá de mí na Samhain, scríobh It's me FKtPp ;): 
> 
>  > Dear developers:
>  > 
>  > I configured  my XEmacs use the following XFT face-font:
>  > 
>  > --8<---------------cut here---------------start------------->8---
>  > (define-specifier-tag 'lang-cn)
>  > (set-face-font 'default "Bitstream Vera Sans Mono-15")
>  > (set-face-font 'default "SimSun-15"
>  > ;              nil '(lang-cn) 'remove-tag-set-append)
>  >                nil '(lang-cn) 'append)
>  > --8<---------------cut here---------------end--------------->8---
>  > 
>  > But XEmacs always warning me as follow when it started. Does X
>  > Resource have anything todo with XFT font configuration? 
> 
> Unfortunately it does. 
> 
>  > Is there anything I can do to get rid of this?
> 
> Personally I specify distinct fonts for XFT and for server-side X11 fonts
> in my ~/.Xdefaults like so: 
> 
> #ifdef XEMACS_XFT
> XEmacs.default.attributeFont: Bitstream Vera Sans Mono-15
> #else
> XEmacs.default.attributeFont: "-*-andale mono-medium-r-*-*-*-85-100-100-*-*-iso8859-1"
> #endif
> 
> and then before starting an XEmacs with XFT, I run 
> 
> xrdb -DXEMACS_XFT < ~/.Xdefaults
> 
> which puts the earlier resource in place, instead of the later one. 

Thanks, this works~~~ It suppress the X Resource related warning. But,
for displaying nice and correct-sized chinese characters I still have
to kept the set-face-font configuration in my init.el.

Is there a way of doing it in one place and all went well?



More information about the XEmacs-Beta mailing list