Solved

emacs: Cannot convert string

Posted on 2003-11-01
12
2,434 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
  • 5
  • 5
12 Comments
 
LVL 3

Expert Comment

by:guynumber5764
Comment Utility
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
Comment Utility
# 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
Comment Utility
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
 

Author Comment

by:samj
Comment Utility
# 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
Comment Utility
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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 

Author Comment

by:samj
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
PAQed, with points refunded (100)

Computer101
E-E Admin
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

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 seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now