?
Solved

emacs: Cannot convert string

Posted on 2003-11-01
12
Medium Priority
?
2,561 Views
Last Modified: 2007-12-19
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
0
Comment
Question by:samj
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
12 Comments
 
LVL 3

Expert Comment

by:guynumber5764
ID: 9672443
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
 

Author Comment

by:samj
ID: 9672644
# 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
 
LVL 3

Expert Comment

by:guynumber5764
ID: 9672947
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
How To Reduce Deployment Times With Pre-Baked AMIs

Even if we can't include all the files in the base image, we can sometimes include some of the larger files that we would otherwise have to download, and we can also sometimes remove the most time-consuming steps. This can help a lot with reducing deployment times.

 

Author Comment

by:samj
ID: 9672968
# 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
 
LVL 3

Expert Comment

by:guynumber5764
ID: 9673036
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
 

Author Comment

by:samj
ID: 9673495
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
 

Author Comment

by:samj
ID: 9673561
why cann't I use one of the fonts allready on my system instead of installing more fonts? how can I do that?
0
 
LVL 3

Expert Comment

by:guynumber5764
ID: 9674994
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
 

Author Comment

by:samj
ID: 9689214
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
 
LVL 3

Expert Comment

by:guynumber5764
ID: 9689392
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
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 9707236
PAQed, with points refunded (100)

Computer101
E-E Admin
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question