LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-15-2009, 04:15 PM   #1
guard
LQ Newbie
 
Registered: Jul 2009
Location: Minsk, Belarus
Distribution: Gentoo, Ubuntu
Posts: 17

Rep: Reputation: 0
Question Emacs: no suitable font was found


Gentoo x86_64, ~amd64
emacs 23.1.1
Well running from the tty, but reporting "No suitable font was found" on attempt to run from the terminal (Gnome) - both as user and as root.
Have already updated world, re-emerged emacs, and made revdep-rebuild.

Tried googling but haven't found any meaningful description of the similar problem.

Any ideas?
 
Old 10-19-2009, 04:27 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,475

Rep: Reputation: 87
Can you please post the contents of your ~/.emacs ?

It might help in diagnosing your font problem.

For example, my ~/.emacs has the following as regards fonts:

Code:
(custom-set-faces
  ;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
  ;; Your init file should contain only one such instance.
 '(default ((t (:stipple nil :background "#ffffff" :foreground "#000000" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 129 :width normal :family "Bitstream Vera Sans"))))
 '(Info-title-1-face ((t (:inherit Info-title-2-face :height 125))))
 '(Info-title-2-face ((t (:inherit Info-title-3-face :height 125))))
 '(Info-title-3-face ((t (:inherit Info-title-4-face :height 125))))
 '(cursor ((t (:background "#04ABFF")))))
I. e. you might try changing "Bitstream Vera Sans" to something else? Or if you have something there, change it to one of the other semantic font names that is installed on your system, and see if it works?

I. e. change the line (if your ~/.emacs even HAS such a line!), save the file, then try to restart emacs.

To find out which fonts you have on your system, I've got no idea... on FC6, in its older KDE version, I can go into the Control Center >> Appearance & Themes >> Fonts screen and the semantic font names there all seem to work in my local emacs.

Hope this helps!
 
Old 10-19-2009, 05:13 AM   #3
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 6,963
Blog Entries: 52

Rep: Reputation: Disabled
Running xlsfonts will list all available fonts.
Code:
xlsfonts > fonts.txt
Then copy & paste the one you want into your .emacs.
Code:
(add-to-list 'default-frame-alist '(font . "whatever"))
 
Old 10-21-2009, 04:15 PM   #4
guard
LQ Newbie
 
Registered: Jul 2009
Location: Minsk, Belarus
Distribution: Gentoo, Ubuntu
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks for your advices, I have tried both with no success.
I'm curious why such a problem exists. In my previous installation I was having emacs running out of the box.
 
Old 10-21-2009, 04:46 PM   #5
guard
LQ Newbie
 
Registered: Jul 2009
Location: Minsk, Belarus
Distribution: Gentoo, Ubuntu
Posts: 17

Original Poster
Rep: Reputation: 0
Finally, thanks to http://forum.soft32.com/linux/gentoo...ict486796.html the problem is solved. The package fonts-misc-misc was missing
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Emacs - changing default font size and font type? neilcpp Linux - Software 16 05-20-2013 11:29 AM
Changing Font in Emacs jraclarke Linux - Newbie 5 04-23-2010 12:36 PM
emacs under X - font problem avallach Linux - Software 1 04-05-2007 09:28 AM
Help with font size in emacs? shadow5277 Linux - General 3 02-24-2006 03:48 AM
font size in emacs koyi Linux - Software 0 06-28-2004 08:35 AM


All times are GMT -5. The time now is 03:20 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration