enabling dejavu/bitstream vera font in emacs
Hi all,
I have been using slackware for sometime now. I have now slackware 12.0 installed on my computer. Everything seems to be fine except for fonts in emacs. I noticed that there is dejavu fonts included in the /usr/share/fonts/TTF directory. however, if i set my fonts in my .emacs file as (set-default-font "-misc-dejavu sans-medium-r-normal--*-*-75-75-p-*-*-*") i get only blocks. i then copied bitstream sans mono fonts in the same directory as above. then i did mkfontscale,mkfontdir,fc-cache. i restarted X. although i bitstream vera fonts are found, again i get blocks. however bitstream charter works. Is there something i am missing? xlsfonts for dejavu and bitstream vera sans mono shows 0(zero) in the pixel size fields. any help is very much appreciated. Thanks krishnan |
Fire up xfontsel, pick your font and put that in your ~/.emacs. I've got this for Terminus (which I prefer):
(set-frame-font "-*-terminus-medium-r-*-*-14-*-*-*-*-*-*-*") (set-default-font "-*-terminus-medium-r-*-*-14-*-*-*-*-*-*-*") |
Hi,
thanks for your reply. i have tried using xfontsel earlier. i get empty boxes instead of characters. that is what my original doubt was. |
Quote:
|
Solved.
Quote:
i got emacs from the CVS(23.0.50) and recompiled from source. Fonts are now all ok. I think this is a problem with emacs version 21.4. Thanks again for your suggestions. |
No problem.
|
All times are GMT -5. The time now is 07:29 AM. |