Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i have been having some sort of a stupid problem with my emacs since day1 and i dont know whats wrong.. i can vaguely remember that it was ok during my partial set up process, meaning while i was getting the system to a level i would be satisfied with the stuff i have.. (note that i am relatively new to linux world)
with a search on the error message i found such a thread but unfortunately it didnt help a lot, assuming that not many people have seen my reply there i would like to leave the link here:
in short terms, the problem is as follows:
when i start emacs, all the characters on emacs window, including the menus are shown as empty rectangles.... whatever i may type are also rectangles...
on the shell i ran emacs i found this error message:
Warning: Cannot convert string "-*-helvetica-medium-r-*--*-120-*-*-*-*-iso8859-1" to type FontStruct
i tried to uninstall and reinstall again (i installed emacs21 and then xemacs21, thought the problem was originating from xemacs, but removing that didnt solve a thing) and tried the steps mentioned in the thread above, the problem is most of the things there dont apply to my system...
i would really appreciate if somebody could give me some tips on this, thnx
BTW: i am using a debian distrobution with 2.9.1 kernel and sid (unstable) version
Warning: Cannot convert string "-*-helvetica-medium-r-*--*-120-*-*-*-*-iso8859-1" to type FontStruct
i think this is not an emacs bug but rather some bug in debian that i bet is not causing the problem
try just starting emacs without any arguments and from the menu choose
Options -> Mule
set language to your language then use the set font options and see if you can get it to where it looks ok to you then go
Options -> save options
or an alternative is to make a file in your home directory called .Xresources and put in it
emacs.font: *fixed-bold-r-*-15-*-*
i have also seen this written
Emacs.default.attributeFont: -*-*-medium-r-*-*-*-120-*-*-m-*-*-*
both syntax work
then after saving or changing that file type
xrdb .Xresources
to read it in
(it's read automatically when you log in otherwise)
of course any font you actually have will do
i also think make a .emacs file in your home directory and put in it
(setq scalable-fonts-allowed t)
might help
and also will get you started on your own .emacs file which is an important thing to learn to use
see if that helps
Last edited by foo_bar_foo; 12-16-2004 at 12:51 PM.
i don't get it. he wrote that even the menu fonts are rectangular.
how can he start emacs in X and go to the menu and change the font?
somehow he need to change the font before. IMHO, it is clear that there is a problem with the default font. problem something related to the Debian package.
he needs to change the font argument. somehow call emacs with an existing font.
agreed with slackie menus are not readable.. and besides i was lost in the stage of creating and moving special files around... if you guys mention some specific file, or something you gotta take it simple and step by step so that i can get it...
so, i think my first mail was a bit bad written. i clarify now.
invoking emacs with the option "-q" you ignore the config file
Code:
/home/$USER/.emacs
i thought you could have some strange font definition in your config file.
the second idea is changing the font in the command line.
Code:
emacs -fn $FONT_NAME
with the parameter "-fn" you can give the font name. this is equivalent to change it in Xresources or Xdefault file.
the hard task is to find which font is available in your system.
there is no shame, mate. we are all newbie.
through some use of xfontsel and emacs -fn <fontname> i managed to see characters on my emacs window...
btw my mistake, characters on the menus are readable but not the popup descriptions for them... i apparently was remembering wrong.. but the suggestions above (regarding to menus) dont work anyways... emacs quits itself for no apparent reason..
now after being able to use a certain font and having some characters, following a friends advice i tried to save options, which would presumably save the font settings as well.. unfortuantely it didnt... but now i have a .emacs file and a .emacs.d directory in my home directory...
.emacs file looks like this as of now:
GNU nano 1.2.4 File: .emacs
(custom-set-variables
;; custom-set-variables was added by Custom -- don't edit or cut/paste it!
;; Your init file should contain only one such instance.
'(case-fold-search t)
'(current-language-environment "Latin-1")
'(default-input-method "latin-1-prefix"))
(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.
)
i have been actively asking and trying to acquire info on #debian @freenode... first of there wasnt any .Xdefaults or .xsession files in my home directory...(actually as far as i can recall not anywhere else either)-... i tried to create a .Xdefaults file as suggested by some, over there.. it now contains:
two different settings i tried.. first one commented out... both ways, still doesnt help...
then i decided that it might as well be a configuration corruption or so... so i purged all packages related to emacs, emacsen, xemacs etc.. then apt-get install emacs21, hoping that it would be a clean start... too bad, i was mistaken....
i have also realised that people have been telling me that an asterisk is missing in the error message i get... i am starting to think that there is just no such font... i might need to change the font libraries, or better font settings...
Quote:
Originally posted by foo_bar_foo
[B]i think this is not an emacs bug but rather some bug in debian that i bet is not causing the problem
try just starting emacs without any arguments and from the menu choose
Options -> Mule
set language to your language then use the set font options and see if you can get it to where it looks ok to you then go
Options -> save options/B]
tried that it gives segmentation fault and kills itself... (when u pick a language, or a font)
Quote:
Originally posted by foo_bar_foo
[B]or an alternative is to make a file in your home directory called .Xresources and put in it
emacs.font: *fixed-bold-r-*-15-*-*
i have also seen this written
Emacs.default.attributeFont: -*-*-medium-r-*-*-*-120-*-*-m-*-*-*
both syntax work
then after saving or changing that file type
xrdb .Xresources
to read it in
(it's read automatically when you log in otherwise)
/B]
too big.. :S and btw only the first line works with me.. i tried to change 15 to 12 but there wasnt such a font.. i tried something else and now it works...
Quote:
Originally posted by foo_bar_foo
i also think make a .emacs file in your home directory and put in it
(setq scalable-fonts-allowed t)
might help
and also will get you started on your own .emacs file which is an important thing to learn to use
there wasn't anything about fonts in .emacs as u can see from my previous post... my question is what kind of parameters one can use in there.. what's the general way of modifying, like what to do, and what not to do... (like certain parts not to be touched)
anyways... it's more or less solved my problem... i still get the same FontStruct error in the shell and the pop up menu descriptions are still rectangles but at least characters are readable...
I'm having a similar problem. while I agree that it may be a debian problem, none of the following worked, emacs still complains about the same fonts:
Quote:
try just starting emacs without any arguments and from the menu choose
Options -> Mule
set language to your language then use the set font options and see if you can get it to where it looks ok to you then go
Options -> save options
or an alternative is to make a file in your home directory called .Xresources and put in it
emacs.font: *fixed-bold-r-*-15-*-*
i have also seen this written
Emacs.default.attributeFont: -*-*-medium-r-*-*-*-120-*-*-m-*-*-*
both syntax work
then after saving or changing that file type
xrdb .Xresources
to read it in
(it's read automatically when you log in otherwise)
of course any font you actually have will do
i also think make a .emacs file in your home directory and put in it
(setq scalable-fonts-allowed t)
might help
and also will get you started on your own .emacs file which is an important thing to learn to use
see if that helps
Starting emacs with -font fixed argument works and modifying the fonts on the options->mule menu also does, but if I save the modifications, next time I run emacs, it dies with segmentation fault (well, at least this is emacs fault).
I am replacing emacs link on my path by a script that calls it with -font fixed option. The script is following.
emacs -font tixed $@
This will not fix the problem, but will make emacs work.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.