You are not logged in.

#1 2009-08-24 02:49:09

murphytalk
Member
Registered: 2005-03-17
Posts: 5

emacs23 xft font problem

It is said emac23 supports xft fonts now,but I am having troubles to use them.

Both on my home and office computers I have font DejaVu Sans Mono and Monaco installed, I can see them in the output of  fc-list and I can use them in other applications such as KDE kate.

In my ~/.Xresources I set emacs's fontbackend to xft

Emacs.FontBackend: xft

In the .emacs I set up default font like this(when use DejaVu Sans Mono)

(set-default-font "DejaVu Sans Mono-11")

or like this (when use Monaco)

(set-default-font "Monaco-11")

The strange thing is that on my home computer although emacs is very happy with DejaVu but it complains "font Monaco is not defined"; and on my office computer it says both of the above fonts are "not defined"(actually if you select the option>set default font from the menu,none of xft fonts is available in the font select dialog, but I swear I can use them in other applications).

the -font or -fn command line option doesn't work for me too.

As far as I know I am using the same xft configurations on home and office computer( I mean those /etc/fonts/conf.d files), so I really cannot understand what is happending?  emacs has been always acting different with "normal" applications , am I missing some tricks?

Thank you in advance.

Offline

Board footer

Powered by FluxBB