Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 952121 - net-print/hplip Missing helvetica-bold font: required for hp-sendfax coverpage's script to work without trial and error & ledmfax.py cleanup
Summary: net-print/hplip Missing helvetica-bold font: required for hp-sendfax coverpag...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Daniel Pielmeier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-27 02:50 UTC by gentoo-bugzilla
Modified: 2025-03-27 18:44 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
hplip hp-sendfax logfile (hp-sendfax.log,326 bytes, text/x-log)
2025-03-27 02:50 UTC, gentoo-bugzilla
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gentoo-bugzilla 2025-03-27 02:50:10 UTC
Created attachment 922985 [details]
hplip hp-sendfax logfile

Gentoo seems to be missing helvetica-bold which seems to be hp's default for the 'basic' coverpage. in hplip/faxes/coverpages.py one can change what font is being used... as well as it seems support for truetypes has been commented out, but left functional. 

As a test of whether its worth pursing supporting hp-fax on gentoo, I installed the truetype helvetica-bold.tff, uncommented & transformed the uming font calls already in the coverpages.py file; and got this `https://faxbeep.com/faxtest/fax_678e4438/ (edit me once confirmed)` but I don't know what the pushed patch' should replace the font with realistically, in regards to FOSS and the community's ideals


If patches are being added to keep faxing working, I think it would be nice to iron out this small issue below, by adding 'r' infront of the 'b' turning it into a raw that can accept the escaped sequence. I haven't investigated why this is getting called, only that changing it to raw resolves the syntax warning.

```
/usr/share/hplip/fax/ledmfax.py:46: SyntaxWarning: invalid escape sequence '\d'
  http_result_pat = re.compile(b"""HTTP/\d.\d\s(\d+)""", re.I)
                              ^r
````
Comment 1 gentoo-bugzilla 2025-03-27 02:54:01 UTC
UNPATCHED WORKAROUND: Don't use `basic` coverpage when faxing. any other type confidential, urgent, etc... is fine to use.