textfmt

Bug #372605 reported by PaoloV
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
hylafax (Ubuntu)
Fix Released
Undecided
Giuseppe Sacco

Bug Description

Ubuntu 8,04.2 Server - Hyalafax Version 4.4.3

When needed a text to postcript conversion, textfmt module exit with this error: "Font Courier: /usr/share/fonts/type1/gsfonts/Courier: Can not open font metrics file; using fixed widths."

This because in /etc/hylafax/hyla.conf the line "FontMap:" point to "/usr/share/gs-esp/8.15/lib:/usr/share/gs-esp/7.07/lib:/usr/share/gs/6.53", instead the right path: /usr/share/ghostscript/8.61/lib

Related branches

Revision history for this message
falstaff (falstaff) wrote :

hyla.conf has the right path nowadays, but still I get an error:

$ sendfax -n -d 0764203538 /etc/issue.net
textfmt: No font metric information found for "Courier-Bold".
Usage: textfmt [-1] [-2] [-B] [-c] [-D] [-f fontname] [-F fontdir(s)] [-m N] [-o #] [-p #] [-r] [-U] [-Ml=#,r=#,t=#,b=#] [-V #] files... >out.ps
Default options: -f Courier -1 -p 11bp -o 0
Error converting document; command was "textfmt -B -f Courier-Bold -Ml=0.4in -p 11 -s default >'/tmp//sndfax7sUaCG' <'/etc/issue.net'"

Revision history for this message
Chris Dunlop (chris-onthe) wrote :

You need to find the directories containing 'Fontmap' or 'Fontmap.GS' file[s] and put these directories (separated by colons if there are more than one directory) into the 'FontMap' entry in /etc/hylafax/hyla.conf

On my Ubuntu 9.10 it's:

FontMap: /var/lib/defoma/gs.d/dirs/fonts

A more generic solution would be:

fm=`locate Fontmap | perl -ne 'chomp; if (s!/Fontmap(?:\.GS)?$!!) { $d{$_}=1; } END { print join(":", keys %d), "\n" } '`
if [ "$fm" ]
then
perl -pi -e's!^(FontMap:\s*).*!$1'${fm}'!' /etc/hylafax/hyla.conf
else
echo "Sorry, can't find any Fontmap files"
fi

The package should either have the correct FontMap entry hard-coded into the hyla.conf file, or use some scripting like above to find the right path[s].

Revision history for this message
Giuseppe Sacco (eppesuig) wrote :

Please use hylafax from Debian or wait until version 6.0.4-10 migrate to Ubuntu. That new version include FontMap path information for many Debian and Ubuntu version.

Changed in hylafax (Ubuntu):
assignee: nobody → Giuseppe Sacco (giuseppe-eppesuigoccas)
status: New → Fix Committed
Revision history for this message
Antonis Kanouras (akanouras) wrote :

Hello,

Could you backport the new version to Lucid as well please?

Thanks,
Antonio

Revision history for this message
Giuseppe Sacco (eppesuig) wrote :

I believe the latest packages, version 6.0.4-10, should work out of the box on any Debian and Ubuntu release.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package hylafax - 2:6.0.5-5ubuntu1

---------------
hylafax (2:6.0.5-5ubuntu1) natty; urgency=low

  * Merge from debian unstable. Remaining changes:
    - debian/patches/901_fchmod-prototype.patch: glibc now includes
      a fchmod prototype which doesn't match hylafax's. (Closes: #565001)
  * Upload should fixes: (LP: #372605, #476098, 595610)

hylafax (2:6.0.5-5) unstable; urgency=low

  * Remove /etc/default/hylafax when puring package (Closes: #607064)

hylafax (2:6.0.5-4.1) unstable; urgency=low

  * Non-maintainer upload.
  * Fix "installation fails": check for existence of /etc/mtab before using it
    (closes: #604221).
  * Fix "prompting due to modified conffiles which were not modified by
    the user": write to /etc/default/hylafax only if it doesn't exist
    (closes: #603429).
 -- Artur Rona <email address hidden> Wed, 22 Dec 2010 20:10:59 +0100

Changed in hylafax (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.