Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 720352

Summary: net-misc/suite3270 deploys the 'x3270' font but x3270 does not see it (menu option greyed out)
Product: Gentoo Linux Reporter: Adrien Dessemond <admnd>
Component: Current packagesAssignee: Robin Johnson <robbat2>
Status: UNCONFIRMED ---    
Severity: normal CC: fonts, jstein, s390
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Make the ebuild push a new FontPath in Xorg configuration and be a little more friendlier to the sysadmin on what to do next :)

Description Adrien Dessemond 2020-05-01 21:33:24 UTC
If you look after what is deployed by net-misc/suite3270 you can see an Adobe PCF font named 'x3270':

$ equery f net-misc/suite3270 | grep fonts
/usr/share/fonts
/usr/share/fonts/x3270
/usr/share/fonts/x3270/3270-12.pcf.gz
/usr/share/fonts/x3270/3270-12b.pcf.gz
/usr/share/fonts/x3270/3270-20.pcf.gz
/usr/share/fonts/x3270/3270-20b.pcf.gz
/usr/share/fonts/x3270/3270.pcf.gz
/usr/share/fonts/x3270/3270b.pcf.gz
/usr/share/fonts/x3270/3270gr.pcf.gz
/usr/share/fonts/x3270/3270gt12.pcf.gz
/usr/share/fonts/x3270/3270gt12b.pcf.gz
/usr/share/fonts/x3270/3270gt16.pcf.gz
/usr/share/fonts/x3270/3270gt16b.pcf.gz
/usr/share/fonts/x3270/3270gt24.pcf.gz
/usr/share/fonts/x3270/3270gt24b.pcf.gz
/usr/share/fonts/x3270/3270gt32.pcf.gz
/usr/share/fonts/x3270/3270gt32b.pcf.gz
/usr/share/fonts/x3270/3270gt8.pcf.gz
/usr/share/fonts/x3270/3270h.pcf.gz
/usr/share/fonts/x3270/encodings.dir
/usr/share/fonts/x3270/fonts.dir
/usr/share/fonts/x3270/fonts.scale

However the menu chhoice "Options->Fonts->3270 Font (14 point)" is greyed out in x3270. The reason for this is that Xorg is not aware about the exitence of this newly installed font. 

you have to either manually issue a :

xset fp+ /usr/share/fonts/x3270  && xset fp rehash

Or to make this persistent, add a "FontPath" statement in a "File" section in your Xorg configuration. This latter step could be done by the ebuild, providing a better user experience.

Tested with net-misc/suite3270-3.5p12 (Suite 3270 3.5 GA 12) and net-misc/suite3270-3.6p8 (Suite 3270 3.6 GA 8).
Comment 1 Adrien Dessemond 2020-05-01 23:14:55 UTC
Created attachment 635564 [details, diff]
Make the ebuild push a new FontPath in Xorg configuration and be a little more friendlier to the sysadmin on what to do next :)
Comment 2 SpanKY gentoo-dev 2021-01-14 21:36:59 UTC
i would assume the font eclass would handle this for us rather than having to do random package-specific hacks.  hopefully they have recommendations.