Article View: comp.windows.x.apps
Article #603Re: x3270
From: Steven J Flynn
Date: Thu, 19 Nov 1992 14:51
Date: Thu, 19 Nov 1992 14:51
66 lines
2236 bytes
2236 bytes
In article <1992Nov15.111238.15598@newstand.syr.edu> svdhara@mongoose.syr.EDU () writes: > > > We work on Sun O.S. 4.1.2 X11 R4 Openwin.v3. >When we try to run x3270 on this environment,the following >error message comes: > >Warning: Cannot convert string "3270" to type FontStruct > >In addition,the screen is garbled. > >I have checked the font.dir and it is in the font path. >I also tried to include the fonts in the current directory and add the >current directory to the font path with: > >xset +fp [path] >xset fp rehash > >But still ,the error message persists. > >In the Makefile,TOP=. (TOP is defined as current dir.).Is this affecting >the execution of x3270? > >If you can go through my Makefile and suggest a solution,please let me know. >I will immediately mail it you. > I had the same problem. The problem is in you font definition and how you put it in the font files. The font definition is: -Misc-3270-Medium-R-Normal--14-140-75-75-C-90--1 (from the 3270.bdf file) In you Imakefile make sure: FONTINSTDIR = $(FONTDIR)/misc In the /misc directory the entry for font.alias is: 3270 -misc-3270-medium-r-normal--14-140-75-75-c-90--1 An in /misc directory the entry for fonts.dir is: 3270.pcf -misc-3270-medium-r-normal--14-140-75-75-c-90--1 (make sure you add one to the font counter at the top of the file) do xmkmf make Makefiles make xset fp rehash and you should be set to go!!!! (it took me a while since I'm an x-novice!) If you want to put the font in its own directory, xset +fp [Path] will work. GOOD LUCK!! Steve Flynn University of Delaware
Technical Details
Message-ID:
<1992Nov19.145115.28257@udel.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!darwin.sura.net!udel!louie!krusty.ee.udel.edu!sflynnReferences:
<1992Nov15.111238.15598@newstand.syr.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.windows.x.apps Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!darwin.sura.net!udel!louie!krusty.ee.udel.edu!sflynn From: sflynn@krusty.ee.udel.edu (Steven J Flynn) Subject: Re: x3270 Message-ID: <1992Nov19.145115.28257@udel.edu> Sender: usenet@udel.edu (USENET News Service) Nntp-Posting-Host: krusty.ee.udel.edu Organization: University of Delaware, Newark References: <1992Nov15.111238.15598@newstand.syr.edu> Distribution: usa Date: Thu, 19 Nov 1992 14:51:15 GMT Lines: 66