Dear fellow fedora users,
I have compiled and installed x48(an hp48 g/gx calculator emulator) on Fedora. When I try to run it I get error:
[olivares@localhost ~]$ x48 x48: using XShm extension. x48: /home/olivares/.hp48/hp48 is a version 0.4.0 file, converting x48: FATAL ERROR, exit. - can't load font '-*-helvetica-medium-r-normal-*-12-*-*-*-*-*-iso8859-1' - Please change resource 'connectionFont' [olivares@localhost ~]$
How can I overcome this error and run x48 on fedora?
Thanks & Best Regards,
Antonio
Sent from ProtonMail, encrypted email based in Switzerland.
On Tue, Sep 8, 2020 at 6:52 AM None via users users@lists.fedoraproject.org wrote:
I have compiled and installed x48(an hp48 g/gx calculator emulator) on Fedora. When I try to run it I get error:
[olivares@localhost ~]$ x48 x48: using XShm extension. x48: /home/olivares/.hp48/hp48 is a version 0.4.0 file, converting x48: FATAL ERROR, exit.
- can't load font '-*-helvetica-medium-r-normal-*-12-*-*-*-*-*-iso8859-1'
- Please change resource 'connectionFont'
[olivares@localhost ~]$
How can I overcome this error and run x48 on fedora?
Do you have the package xorg-x11-fonts-ISO8859-1-100dpi installed on your system?
Sent from ProtonMail, encrypted email based in Switzerland.
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Tuesday, September 8, 2020 9:34 AM, Jerry James loganjerry@gmail.com wrote:
On Tue, Sep 8, 2020 at 6:52 AM None via users users@lists.fedoraproject.org wrote:
I have compiled and installed x48(an hp48 g/gx calculator emulator) on Fedora. When I try to run it I get error: [olivares@localhost ~]$ x48 x48: using XShm extension. x48: /home/olivares/.hp48/hp48 is a version 0.4.0 file, converting x48: FATAL ERROR, exit.
- can't load font '--helvetica-medium-r-normal--12-----*-iso8859-1'
- Please change resource 'connectionFont' [olivares@localhost ~]$
How can I overcome this error and run x48 on fedora?
Do you have the package xorg-x11-fonts-ISO8859-1-100dpi installed on your system?
Jerry James http://www.jamezone.org/
[olivares@localhost ~]$ rpm -qa | grep 'xorg-x11-fonts' xorg-x11-fonts-misc-7.5-24.fc32.noarch xorg-x11-fonts-Type1-7.5-24.fc32.noarch xorg-x11-fonts-ISO8859-1-100dpi-7.5-24.fc32.noarch [olivares@localhost ~]$
Best Regards,
Antonio
On Tue, Sep 8, 2020 at 8:36 AM None via users users@lists.fedoraproject.org wrote:
[olivares@localhost ~]$ rpm -qa | grep 'xorg-x11-fonts' xorg-x11-fonts-misc-7.5-24.fc32.noarch xorg-x11-fonts-Type1-7.5-24.fc32.noarch xorg-x11-fonts-ISO8859-1-100dpi-7.5-24.fc32.noarch [olivares@localhost ~]$
Then you'll have to change connectionFont to some font that you do have. What you have now is something like this (using a wildcard, because I don't know what should go there):
*connectionFont: -*-helvetica-medium-r-normal-*-12-*-*-*-*-*-iso8859-1
You'll need to determine which font you want to use. The xorg-x11-apps package contains xfontsel, which can help you determine a font string to use. You might want to start by replacing the "iso8859-1" part with wildcards, i.e.,
*connectionFont: -*-helvetica-medium-r-normal-*-12-*-*-*-*-*-*-*
Once you've got the font string you want, add it to your ~/.Xresources or ~/.Xdefaults file. Wow, I haven't had to do any of this for years. My memory is a little hazy, but I think that's approximately what needs to be done. :-)
On Tue, Sep 08, 2020 at 08:50:41AM -0600, Jerry James wrote:
Once you've got the font string you want, add it to your ~/.Xresources or ~/.Xdefaults file. Wow, I haven't had to do any of this for years. My memory is a little hazy, but I think that's approximately what needs to be done. :-)
I agree, this dredged up some bad memories of X fonts and font servers.
on my f32 system with the X font packages installed, I don't see a size 12 font:
$ xlsfonts |grep helvetica-medium-r-normal -adobe-helvetica-medium-r-normal--11-80-100-100-p-56-iso8859-1 -adobe-helvetica-medium-r-normal--14-100-100-100-p-76-iso8859-1 -adobe-helvetica-medium-r-normal--17-120-100-100-p-88-iso8859-1 -adobe-helvetica-medium-r-normal--20-140-100-100-p-100-iso8859-1 -adobe-helvetica-medium-r-normal--25-180-100-100-p-130-iso8859-1 -adobe-helvetica-medium-r-normal--34-240-100-100-p-176-iso8859-1
So, I suspect the config for the HP48 emulator (another old memory, RPN rocks!) has a size 12 font set someplace.
Sent from ProtonMail, encrypted email based in Switzerland.
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Tuesday, September 8, 2020 10:11 AM, Jonathan Billings billings@negate.org wrote:
On Tue, Sep 08, 2020 at 08:50:41AM -0600, Jerry James wrote:
Once you've got the font string you want, add it to your ~/.Xresources or ~/.Xdefaults file. Wow, I haven't had to do any of this for years. My memory is a little hazy, but I think that's approximately what needs to be done. :-)
I agree, this dredged up some bad memories of X fonts and font servers.
on my f32 system with the X font packages installed, I don't see a size 12 font:
$ xlsfonts |grep helvetica-medium-r-normal -adobe-helvetica-medium-r-normal--11-80-100-100-p-56-iso8859-1 -adobe-helvetica-medium-r-normal--14-100-100-100-p-76-iso8859-1 -adobe-helvetica-medium-r-normal--17-120-100-100-p-88-iso8859-1 -adobe-helvetica-medium-r-normal--20-140-100-100-p-100-iso8859-1 -adobe-helvetica-medium-r-normal--25-180-100-100-p-130-iso8859-1 -adobe-helvetica-medium-r-normal--34-240-100-100-p-176-iso8859-1
So, I suspect the config for the HP48 emulator (another old memory, RPN rocks!) has a size 12 font set someplace.
Jonathan Billings billings@negate.org
Thank you very much Sir! Your message has helped me resolve this issue. I changed the 12 to 11 and voila it worked!
[olivares@localhost Documents]$ xlsfonts |grep helvetica-medium-r-normal -adobe-helvetica-medium-r-normal--11-80-100-100-p-56-iso8859-1 -adobe-helvetica-medium-r-normal--14-100-100-100-p-76-iso8859-1 -adobe-helvetica-medium-r-normal--17-120-100-100-p-88-iso8859-1 -adobe-helvetica-medium-r-normal--20-140-100-100-p-100-iso8859-1 -adobe-helvetica-medium-r-normal--25-180-100-100-p-130-iso8859-1 -adobe-helvetica-medium-r-normal--34-240-100-100-p-176-iso8859-1 [olivares@localhost Documents]$ echo "*connectionFont: -*-helvetica-medium-r-normal-*-11-*-*-*-*-*-*-*" >> ~/.Xdefaults-$(hostname) [olivares@localhost Documents]$ mcedit ~/.Xdefaults-localhost.localdomain
[olivares@localhost Documents]$ x48 x48: using XShm extension. x48: /home/olivares/.hp48/hp48 is a version 0.4.0 file, converting [olivares@localhost Documents]$
My sister bought me an HP48G with RPN in 1993 and I have it at home, but I like to have it run virtually and now thanks to your suggestion, I got it working :)
Best Regards,
Antonio