LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   enabling dejavu/bitstream vera font in emacs (https://www.linuxquestions.org/questions/slackware-14/enabling-dejavu-bitstream-vera-font-in-emacs-610347/)

skrishnan_v 01-01-2008 08:18 AM

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

kotnik 01-01-2008 12:21 PM

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-*-*-*-*-*-*-*")

skrishnan_v 01-01-2008 11:11 PM

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.

kotnik 01-02-2008 08:41 AM

Quote:

(set-default-font "-misc-dejavu sans-medium-r-normal--*-*-75-75-p-*-*-*")
Try putting - between dejavu and sans. Maybe that'll help.

skrishnan_v 01-02-2008 11:16 PM

Solved.
 
Quote:

Originally Posted by kotnik (Post 3008522)
Try putting - between dejavu and sans. Maybe that'll help.

Problem is now solved.
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.

kotnik 01-03-2008 07:35 AM

No problem.


All times are GMT -5. The time now is 07:29 AM.