emacs: Cannot convert string

I have this problem when I issue the command emacs

$ emacs prog/tnd.pl
Warning: Cannot convert string "-*-courier-medium-r-*-*-*-120-
*-*-*-*-iso8859-*" to type FontStruct
Warning: Cannot convert string "-*-helvetica-medium-r-*--*-120
-*-*-*-*-iso8859-1" to type FontStruct

emacs window opens up and the letters are all converted to squares. that is all what I can see. squares.


thanks
samjAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

guynumber5764Commented:
Nobody's jumped in so...

Try
xlsfonts *-helvetica-medium-r-*--*-120-*-*-*-*-iso8859-1

that probably will not return any matching fonts.
If so,
xlsfonts | grep courier

Then
emacs -font <one of the listed fonts>
That'll get you into emacs so you can at least read the help ;).

I'm still looking into where you can change the default font for emacs.  If you figure it out, tell me.
0
samjAuthor Commented:
# xlsfonts *-helvetica-medium-r-*--*-120-*-*-*-*-iso8859-1
xlsfonts: pattern "*-helvetica-medium-r-*--*-120-*-*-*-*-iso8859-1" unmatched

# xlsfonts | grep courier
#

#emacs -font fixed
will open emacs and can read but not fixed the problem since #emacs still shows boxs.

after reading at http://mail.gnu.org/archive/html/bug-gnu-emacs/ 
it look to me that some font setup in the /.Xdefaults file, but I could not find this file on my system either. not sure if I have to create it and where?
0
guynumber5764Commented:
You and me both :)
I'm still trying to figure X configuration.  You are right that the font setup is the same (man xlsfonts for more info).  At least you have a handle on what the problem is now.

"xlsfonts | grep courier" returning no matches suggests that most of your fonts are missing.  Run "xlsfonts" alone to see what you've got.
0
Starting with Angular 5

Learn the essential features and functions of the popular JavaScript framework for building mobile, desktop and web applications.

samjAuthor Commented:
# xlsfonts
-arabic-newspaper-medium-r-normal--0-0-100-100-p-0-iso10646-1
-arabic-newspaper-medium-r-normal--32-246-100-100-p-137-iso10646-1
-daewoo-gothic-medium-r-normal--0-0-100-100-c-0-ksc5601.1987-0
-daewoo-gothic-medium-r-normal--16-120-100-100-c-160-ksc5601.1987-0
-daewoo-mincho-medium-r-normal--0-0-100-100-c-0-ksc5601.1987-0
-daewoo-mincho-medium-r-normal--16-120-100-100-c-160-ksc5601.1987-0
-daewoo-mincho-medium-r-normal--24-170-100-100-c-240-ksc5601.1987-0
-isas-fangsong ti-medium-r-normal--0-0-72-72-c-0-gb2312.1980-0
-isas-fangsong ti-medium-r-normal--16-160-72-72-c-160-gb2312.1980-0
-isas-song ti-medium-r-normal--0-0-72-72-c-0-gb2312.1980-0
-isas-song ti-medium-r-normal--16-160-72-72-c-160-gb2312.1980-0
-isas-song ti-medium-r-normal--24-240-72-72-c-240-gb2312.1980-0
-jis-fixed-medium-r-normal--0-0-75-75-c-0-jisx0208.1983-0
-jis-fixed-medium-r-normal--16-110-100-100-c-160-jisx0208.1983-0
-jis-fixed-medium-r-normal--16-150-75-75-c-160-jisx0208.1983-0
-jis-fixed-medium-r-normal--24-170-100-100-c-240-jisx0208.1983-0
-jis-fixed-medium-r-normal--24-230-75-75-c-240-jisx0208.1983-0
-misc-console-medium-r-normal--0-0-72-72-c-0-iso10646-1
-misc-console-medium-r-normal--16-160-72-72-c-160-iso10646-1
-misc-console-medium-r-normal--8-80-72-72-c-80-iso10646-1
-misc-fixed-bold-r-normal--0-0-100-100-c-0-iso10646-1
-misc-fixed-bold-r-normal--0-0-100-100-c-0-iso8859-1
-misc-fixed-bold-r-normal--0-0-75-75-c-0-iso10646-1
-misc-fixed-bold-r-normal--0-0-75-75-c-0-iso8859-1
-misc-fixed-bold-r-normal--13-100-100-100-c-70-iso8859-1
-misc-fixed-bold-r-normal--13-100-100-100-c-80-iso8859-1
-misc-fixed-bold-r-normal--13-120-75-75-c-70-iso10646-1
-misc-fixed-bold-r-normal--13-120-75-75-c-70-iso8859-1
-misc-fixed-bold-r-normal--13-120-75-75-c-80-iso10646-1
-misc-fixed-bold-r-normal--13-120-75-75-c-80-iso8859-1
-misc-fixed-bold-r-normal--14-130-75-75-c-70-iso10646-1
-misc-fixed-bold-r-normal--14-130-75-75-c-70-iso8859-1
-misc-fixed-bold-r-normal--15-120-100-100-c-90-iso8859-1
-misc-fixed-bold-r-normal--15-140-75-75-c-90-iso10646-1
-misc-fixed-bold-r-normal--15-140-75-75-c-90-iso8859-1
-misc-fixed-bold-r-normal--18-120-100-100-c-90-iso10646-1
-misc-fixed-bold-r-normal--18-120-100-100-c-90-iso8859-1
-misc-fixed-bold-r-semicondensed--0-0-75-75-c-0-iso10646-1
-misc-fixed-bold-r-semicondensed--0-0-75-75-c-0-iso8859-1
-misc-fixed-bold-r-semicondensed--13-100-100-100-c-60-iso8859-1
-misc-fixed-bold-r-semicondensed--13-120-75-75-c-60-iso10646-1
-misc-fixed-bold-r-semicondensed--13-120-75-75-c-60-iso8859-1
-misc-fixed-medium-o-normal--0-0-75-75-c-0-iso10646-1
-misc-fixed-medium-o-normal--0-0-75-75-c-0-iso8859-1
-misc-fixed-medium-o-normal--13-120-75-75-c-70-iso10646-1
-misc-fixed-medium-o-normal--13-120-75-75-c-70-iso8859-1
-misc-fixed-medium-o-normal--13-120-75-75-c-80-iso10646-1
-misc-fixed-medium-o-normal--13-120-75-75-c-80-iso8859-1
-misc-fixed-medium-o-semicondensed--0-0-75-75-c-0-iso10646-1
-misc-fixed-medium-o-semicondensed--0-0-75-75-c-0-iso8859-1
-misc-fixed-medium-o-semicondensed--13-120-75-75-c-60-iso10646-1
-misc-fixed-medium-o-semicondensed--13-120-75-75-c-60-iso8859-1
-misc-fixed-medium-r-normal--0-0-100-100-c-0-iso10646-1
-misc-fixed-medium-r-normal--0-0-100-100-c-0-iso8859-1
-misc-fixed-medium-r-normal--0-0-75-75-c-0-iso10646-1
-misc-fixed-medium-r-normal--0-0-75-75-c-0-iso8859-1
-misc-fixed-medium-r-normal--0-0-75-75-c-0-jisx0201.1976-0
-misc-fixed-medium-r-normal--0-0-75-75-c-0-jisx0208.1983-0
-misc-fixed-medium-r-normal--10-100-75-75-c-60-iso10646-1
-misc-fixed-medium-r-normal--10-100-75-75-c-60-iso8859-1
-misc-fixed-medium-r-normal--10-70-100-100-c-60-iso8859-1
-misc-fixed-medium-r-normal--13-100-100-100-c-70-iso8859-1
-misc-fixed-medium-r-normal--13-100-100-100-c-80-iso8859-1
-misc-fixed-medium-r-normal--13-120-75-75-c-70-iso10646-1
-misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-1
-misc-fixed-medium-r-normal--13-120-75-75-c-80-iso10646-1
-misc-fixed-medium-r-normal--13-120-75-75-c-80-iso8859-1
-misc-fixed-medium-r-normal--14-110-100-100-c-70-iso8859-1
-misc-fixed-medium-r-normal--14-130-75-75-c-140-jisx0208.1983-0
-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646-1
-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-1
-misc-fixed-medium-r-normal--14-130-75-75-c-70-jisx0201.1976-0
-misc-fixed-medium-r-normal--15-120-100-100-c-90-iso8859-1
-misc-fixed-medium-r-normal--15-140-75-75-c-90-iso10646-1
-misc-fixed-medium-r-normal--15-140-75-75-c-90-iso8859-1
-misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1
-misc-fixed-medium-r-normal--18-120-100-100-c-90-iso8859-1
-misc-fixed-medium-r-normal--20-140-100-100-c-100-iso8859-1
-misc-fixed-medium-r-normal--20-200-75-75-c-100-iso10646-1
-misc-fixed-medium-r-normal--20-200-75-75-c-100-iso8859-1
-misc-fixed-medium-r-normal--7-50-100-100-c-50-iso8859-1
-misc-fixed-medium-r-normal--7-70-75-75-c-50-iso10646-1
-misc-fixed-medium-r-normal--7-70-75-75-c-50-iso8859-1
-misc-fixed-medium-r-normal--8-60-100-100-c-50-iso8859-1
-misc-fixed-medium-r-normal--8-80-75-75-c-50-iso10646-1
-misc-fixed-medium-r-normal--8-80-75-75-c-50-iso8859-1
-misc-fixed-medium-r-normal--9-80-100-100-c-60-iso8859-1
-misc-fixed-medium-r-normal--9-90-75-75-c-60-iso10646-1
-misc-fixed-medium-r-normal--9-90-75-75-c-60-iso8859-1
-misc-fixed-medium-r-normal-ja-0-0-100-100-c-0-iso10646-1
-misc-fixed-medium-r-normal-ja-0-0-75-75-c-0-iso10646-1
-misc-fixed-medium-r-normal-ja-13-120-75-75-c-120-iso10646-1
-misc-fixed-medium-r-normal-ja-18-120-100-100-c-180-iso10646-1
-misc-fixed-medium-r-normal-ko-0-0-100-100-c-0-iso10646-1
-misc-fixed-medium-r-normal-ko-18-120-100-100-c-180-iso10646-1
-misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso10646-1
-misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-1
-misc-fixed-medium-r-semicondensed--12-110-75-75-c-60-iso10646-1
-misc-fixed-medium-r-semicondensed--12-110-75-75-c-60-iso8859-1
-misc-fixed-medium-r-semicondensed--12-90-100-100-c-60-iso8859-1
-misc-fixed-medium-r-semicondensed--13-100-100-100-c-60-iso8859-1
-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1
-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1
-misc-nil-medium-r-normal--0-0-75-75-c-0-misc-fontspecific
-misc-nil-medium-r-normal--2-20-75-75-c-10-misc-fontspecific
-mutt-clearlyu alternate glyphs-medium-r-normal--0-0-100-100-p-0-iso10646-1
-mutt-clearlyu alternate glyphs-medium-r-normal--17-120-100-100-p-91-iso10646-1
-mutt-clearlyu arabic extra-medium-r-normal--0-0-100-100-p-0-fontspecific-0
-mutt-clearlyu arabic extra-medium-r-normal--17-120-100-100-p-103-fontspecific-0
-mutt-clearlyu ligature-medium-r-normal--0-0-100-100-p-0-fontspecific-0
-mutt-clearlyu ligature-medium-r-normal--17-120-100-100-p-141-fontspecific-0
-mutt-clearlyu pua-medium-r-normal--0-0-100-100-p-0-iso10646-1
-mutt-clearlyu pua-medium-r-normal--17-120-100-100-p-110-iso10646-1
-mutt-clearlyu-medium-r-normal--0-0-100-100-p-0-iso10646-1
-mutt-clearlyu-medium-r-normal--17-120-100-100-p-124-iso10646-1
-schumacher-clean-bold-r-normal--0-0-75-75-c-0-iso646.1991-irv
-schumacher-clean-bold-r-normal--10-100-75-75-c-60-iso646.1991-irv
-schumacher-clean-bold-r-normal--10-100-75-75-c-80-iso646.1991-irv
-schumacher-clean-bold-r-normal--12-120-75-75-c-60-iso646.1991-irv
-schumacher-clean-bold-r-normal--12-120-75-75-c-80-iso646.1991-irv
-schumacher-clean-bold-r-normal--13-130-75-75-c-80-iso646.1991-irv
-schumacher-clean-bold-r-normal--14-140-75-75-c-80-iso646.1991-irv
-schumacher-clean-bold-r-normal--15-150-75-75-c-90-iso646.1991-irv
-schumacher-clean-bold-r-normal--16-160-75-75-c-80-iso646.1991-irv
-schumacher-clean-bold-r-normal--8-80-75-75-c-80-iso646.1991-irv
-schumacher-clean-medium-i-normal--0-0-75-75-c-0-iso646.1991-irv
-schumacher-clean-medium-i-normal--12-120-75-75-c-60-iso646.1991-irv
-schumacher-clean-medium-i-normal--8-80-75-75-c-80-iso646.1991-irv
-schumacher-clean-medium-r-normal--0-0-75-75-c-0-iso646.1991-irv
-schumacher-clean-medium-r-normal--10-100-75-75-c-50-iso646.1991-irv
-schumacher-clean-medium-r-normal--10-100-75-75-c-60-iso646.1991-irv
-schumacher-clean-medium-r-normal--10-100-75-75-c-70-iso646.1991-irv
-schumacher-clean-medium-r-normal--10-100-75-75-c-80-iso646.1991-irv
-schumacher-clean-medium-r-normal--12-120-75-75-c-60-iso646.1991-irv
-schumacher-clean-medium-r-normal--12-120-75-75-c-70-iso646.1991-irv
-schumacher-clean-medium-r-normal--12-120-75-75-c-80-iso646.1991-irv
-schumacher-clean-medium-r-normal--13-130-75-75-c-60-iso646.1991-irv
-schumacher-clean-medium-r-normal--13-130-75-75-c-80-iso646.1991-irv
-schumacher-clean-medium-r-normal--14-140-75-75-c-70-iso646.1991-irv
-schumacher-clean-medium-r-normal--14-140-75-75-c-80-iso646.1991-irv
-schumacher-clean-medium-r-normal--15-150-75-75-c-90-iso646.1991-irv
-schumacher-clean-medium-r-normal--16-160-75-75-c-80-iso646.1991-irv
-schumacher-clean-medium-r-normal--6-60-75-75-c-40-iso646.1991-irv
-schumacher-clean-medium-r-normal--6-60-75-75-c-50-iso646.1991-irv
-schumacher-clean-medium-r-normal--6-60-75-75-c-60-iso646.1991-irv
-schumacher-clean-medium-r-normal--8-80-75-75-c-50-iso646.1991-irv
-schumacher-clean-medium-r-normal--8-80-75-75-c-60-iso646.1991-irv
-schumacher-clean-medium-r-normal--8-80-75-75-c-70-iso646.1991-irv
-schumacher-clean-medium-r-normal--8-80-75-75-c-80-iso646.1991-irv
-sony-fixed-medium-r-normal--0-0-100-100-c-0-iso8859-1
-sony-fixed-medium-r-normal--0-0-100-100-c-0-jisx0201.1976-0
-sony-fixed-medium-r-normal--16-120-100-100-c-80-iso8859-1
-sony-fixed-medium-r-normal--16-120-100-100-c-80-jisx0201.1976-0
-sony-fixed-medium-r-normal--16-150-75-75-c-80-iso8859-1
-sony-fixed-medium-r-normal--16-150-75-75-c-80-jisx0201.1976-0
-sony-fixed-medium-r-normal--24-170-100-100-c-120-iso8859-1
-sony-fixed-medium-r-normal--24-170-100-100-c-120-jisx0201.1976-0
-sony-fixed-medium-r-normal--24-230-75-75-c-120-iso8859-1
-sony-fixed-medium-r-normal--24-230-75-75-c-120-jisx0201.1976-0
-sun-open look cursor-----0-0-75-75-p-0-sunolcursor-1
-sun-open look cursor-----12-120-75-75-p-160-sunolcursor-1
-sun-open look glyph-----0-0-75-75-p-0-sunolglyph-1
-sun-open look glyph-----10-100-75-75-p-101-sunolglyph-1
-sun-open look glyph-----12-120-75-75-p-113-sunolglyph-1
-sun-open look glyph-----14-140-75-75-p-128-sunolglyph-1
-sun-open look glyph-----19-190-75-75-p-154-sunolglyph-1
10x20
12x24
12x24kana
12x24romankana
5x7
5x8
6x10
6x12
6x13
6x13bold
6x9
7x13
7x13bold
7x14
7x14bold
8x13
8x13bold
8x16
8x16kana
8x16romankana
9x15
9x15bold
a14
cursor
decw$cursor
decw$session
fixed
hanzigb16fs
hanzigb16st
hanzigb24st
k14
kana14
kanji16
kanji24
micro
nil2
olcursor
olglyph-10
olglyph-12
olglyph-14
olglyph-19
r14
r16
r24
rk14
rk16
rk24
0
guynumber5764Commented:
Yup.   There's a whole snotload of fonts missing.  

try reinstalling your fonts
XFree86-100dpi-fonts-4.3-5mdk.i586.rpm
for example.

My system works fine and has the following font packages installed...

100dpi/  75dpi/  encodings/  fonts.cache-1  mdk/  misc/  Speedo/  TTF/  Type1/
0
samjAuthor Commented:
using Debian with kernel 2.4.21
hummm.. what package do I need to install

I have gsfonts 6.0-2 installed which is a Fonts for the ghostscript interperter.

0
samjAuthor Commented:
why cann't I use one of the fonts allready on my system instead of installing more fonts? how can I do that?
0
guynumber5764Commented:
The 100dpi font package listed above would probably work.
You probably can use one of the ones already on your system but I have no idea how you would go about it.  You could try searching for information on X11 or by going to the Debian website.
0
samjAuthor Commented:
I fixed it.

I found this file ( /usr/share/apps/kdisplay/app-defaults/Emacs.ad )
with this info

Emacs.default.attributeForeground: WINDOW_FOREGROUND
Emacs.default.attributeBackground: WINDOW_BACKGROUND

Emacs*Foreground:     WINDOW_FOREGROUND
Emacs*Background:     WINDOW_BACKGROUND
Emacs*menubar*foreground: FOREGROUND
Emacs*menubar*background: BACKGROUND
Emacs*popup*Foreground:     FOREGROUND
Emacs*popup*Background:     BACKGROUND
Emacs*Dialog*foreground: FOREGROUND
Emacs*Dialog*background: BACKGROUND
Emacs*XlwScrollBar.Foreground: FOREGROUND
Emacs*XlwScrollBar.Background: BACKGROUND
Emacs*topToolBarShadowColor: BACKGROUND
Emacs*bottomToolBarShadowColor: BACKGROUND
Emacs*backgroundToolBarColor: BACKGROUND
Emacs*toolBarShadowThickness: 0

!Emacs*font:         FIXED_FONT
!Emacs*menubar*Font:     FONT
!Emacs*popup*Font:     FONT
!Emacs*Dialog*Font:     FONT
!Emacs.default.attributeFont: FIXED_FONT


I changed the last group of lines to

Emacs*font:         FIXED_FONT
Emacs*menubar*Font:     FIXED_FONT
Emacs*popup*Font:     FIXED_FONT
Emacs*Dialog*Font:     FIXED_FONT
Emacs.default.attributeFont: FIXED_FONT

that fixed the problem

thanks


p.s.
I will pdq and refund if you are ok with that?

0
guynumber5764Commented:
I'm fine with a PAQ ...good work!

As observed above, you may wish to address the missing fonts 'cause it's going to bite you somewhere else.
0
Computer101Commented:
PAQed, with points refunded (100)

Computer101
E-E Admin
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux OS Dev

From novice to tech pro — start learning today.