LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-01-2008, 08:18 AM   #1
skrishnan_v
LQ Newbie
 
Registered: Oct 2006
Location: Mumbai
Distribution: Slackware 10.1, RedHat 9.0,Centos 4.3, Slackware 12.0, Fedora 9, Centos 5
Posts: 8

Rep: Reputation: 0
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
 
Old 01-01-2008, 12:21 PM   #2
kotnik
Member
 
Registered: Nov 2004
Location: Novi Sad, Serbia
Distribution: Debian, Slackware, Gentoo, openSuSE
Posts: 254

Rep: Reputation: 31
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-*-*-*-*-*-*-*")
 
Old 01-01-2008, 11:11 PM   #3
skrishnan_v
LQ Newbie
 
Registered: Oct 2006
Location: Mumbai
Distribution: Slackware 10.1, RedHat 9.0,Centos 4.3, Slackware 12.0, Fedora 9, Centos 5
Posts: 8

Original Poster
Rep: Reputation: 0
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.
 
Old 01-02-2008, 08:41 AM   #4
kotnik
Member
 
Registered: Nov 2004
Location: Novi Sad, Serbia
Distribution: Debian, Slackware, Gentoo, openSuSE
Posts: 254

Rep: Reputation: 31
Quote:
(set-default-font "-misc-dejavu sans-medium-r-normal--*-*-75-75-p-*-*-*")
Try putting - between dejavu and sans. Maybe that'll help.
 
Old 01-02-2008, 11:16 PM   #5
skrishnan_v
LQ Newbie
 
Registered: Oct 2006
Location: Mumbai
Distribution: Slackware 10.1, RedHat 9.0,Centos 4.3, Slackware 12.0, Fedora 9, Centos 5
Posts: 8

Original Poster
Rep: Reputation: 0
Solved.

Quote:
Originally Posted by kotnik View Post
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.
 
Old 01-03-2008, 07:35 AM   #6
kotnik
Member
 
Registered: Nov 2004
Location: Novi Sad, Serbia
Distribution: Debian, Slackware, Gentoo, openSuSE
Posts: 254

Rep: Reputation: 31
No problem.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
No Bitstream Vera fonts included? marnold Slackware 3 07-08-2007 08:50 PM
howto use bitstream vera sans font in console? ygloo Linux - General 4 11-20-2006 06:35 PM
Keeping Fedora Bitstream Vera fonts dubya Fedora 1 07-12-2006 12:17 AM
Terminus-font vs Monospace vs Vera sans mono macondo Debian 2 05-16-2006 03:21 PM
Vera Font KePSuX Linux - Newbie 0 04-18-2003 08:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration