Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 720352 - net-misc/suite3270 deploys the 'x3270' font but x3270 does not see it (menu option greyed out)
Summary: net-misc/suite3270 deploys the 'x3270' font but x3270 does not see it (menu o...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-01 21:33 UTC by Adrien Dessemond
Modified: 2021-01-14 21:36 UTC (History)
3 users (show)

See Also:
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 :) (suite3270-3.6_p8.ebuild.patch,1.12 KB, patch)
2020-05-01 23:14 UTC, Adrien Dessemond
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.