Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 296487 - app-text/ghostscript-gpl-8.64 - hylafax cannot find fonts
Summary: app-text/ghostscript-gpl-8.64 - hylafax cannot find fonts
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-11 05:03 UTC by Joseph
Modified: 2012-01-19 07:14 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph 2009-12-11 05:03:22 UTC
When I try to run hylfax setup I get:

Warning: /usr/share/ghostscript/8.64/Resource/Font does not exist or is not a directory!

The directory /usr/share/ghostscript/8.64/Resource/Font does not exist or this file is not a directory.
This is the directory where the HylaFAX client applications expect to
locate font metric information to use in formatting ASCII text for
submission as facsimile.  Without this information HylaFAX may generate
illegible facsimile from ASCII text.

How to resolve missing fonts?


Reproducible: Always

Steps to Reproduce:
1.faxsetup
2.
3.




Portage 2.1.6.13 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r5-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9550_@_2.83GHz-with-gentoo-1.12.13
Timestamp of tree: Sun, 06 Dec 2009 23:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.4
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib64/fax /usr/share/config /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ ftp://ftp.gtlib.gatech.edu/pub/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j6 -l8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/voip /usr/local/portage/layman/kde-sunset /usr/local/portage"
SYNC="rsync://10.0.0.103/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apache2 bluetooth branding bzip2 cairo cdr cgi cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo fam firefox flac foomaticdb fortran gdbm gif gimp gimpprint gpm gstreamer gtk hal iconv ipv6 java jpeg kde kpathsea ldap libnotify mad mikmod mmx modules mp3 mp4 mpeg mudflap multilib mysql ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support quicktime readline reflection scanner sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd tetex thunar tiff truetype type1 unicode usb vorbis x264 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Joseph 2009-12-11 05:21:52 UTC
It seems to me the simple solution would be to create a symlink:
ln -s /usr/share/fonts/default/ghostscript /usr/share/ghostscript/8.64/Resource/Font

Though, it would be nice if it was done by ebuild. 
Comment 2 Rafał Mużyło 2009-12-11 14:47:21 UTC
Most probably just a configuration problem.
The fonts, it's most probably looking for,
are those in /usr/share/fonts/default/ghostscript.
Comment 3 Joseph 2009-12-11 15:00:04 UTC
Yes, these are the fonts, I guess ghostscript change the location but not hylafax yet; so making simple link solved the problem.
But I'm not sure if it is a gentoo setup that change the font location or ghostscript.
If it is ghostscript I'll report this to hylafax.
Comment 4 Rafał Mużyło 2009-12-13 01:59:15 UTC
Are you sure hylafax doesn't let you
configure that path ?
Comment 5 Joseph 2009-12-13 04:09:31 UTC
It seems to me this issue dates back to 2008 or earlier.
I've found post on hylfax forum somebody was asking/reporting the same thing:
--------copy-----------
Date: Wed, 23 Jul 2008 17:27:49 +0200
From: Giuliano David <g.david@vlk.it>
To: breedish <breedish@yandex.ru>
Subject: Re: [hylafax-users] Ghostscript fonts
User-Agent: Thunderbird 2.0.0.14 (X11/20080502)

My suggestion is to install Ghostscript before. THEN re-compile and
re-install Hylafax. It solved the problem for me.
Hope it helps
giuliano


breedish wrote:
> When I am trying to setup hylafax via faxsetup everytime such message appears:
>    Warning: /usr/share/ghostscript/fonts does not exist or is not a directory!
> I download and install ghostscript 8.15 but the structure of
> /usr/share/ghostscript is /usr/share/ghostscript/8.15/ and there is
> no fonts directory. Where can I download fonts and Is this very
> important if I want to send PDF file ?
>
> Thanks.
-----------end copy-----------

I've tired that order:
emerge ghostscirpt
emerge hylafax
makes no difference hylafax still complain about missing font, making symlink solved. 
I don't think hylafax has any setting when it comes to ghostscript fonts.
running from: /var/spool/fax/config
find -type f -print0 | xargs -r0 grep -F "ghostscript'
find -type f -print0 | xargs -r0 grep -F "gv'
is not showing any relevant entries.

It seems to me ghostscript is not reporting correctly the font or hylafax can not find them :-/
I'll try to ask on hylafax forum.

Pozdrowiena.
Comment 6 Rafał Mużyło 2009-12-14 00:28:53 UTC
The config settings are a bit non-obvious -
it's FontMap and FontPath in hyla.conf
Comment 7 Andreas K. Hüttel archtester gentoo-dev 2011-06-02 18:09:40 UTC
Is this still a problem with current ghostscript? If yes, which version?
Comment 8 Andreas K. Hüttel archtester gentoo-dev 2012-01-15 17:51:40 UTC
No reply for half a year.
Comment 9 Joseph 2012-01-15 20:20:48 UTC
I'm not sure how it is related to ghostscript but Gentoo font are complete mess.
I've installed "flpsed" and the scaling of fonts in that package did not work at all.  It compiled OK, no errors but for some reason or another the fonts on the screen only showed 8pts even if I selected 24pts.

Installing an additional fonts solved that issue.
Here are the fonts are have installed:

dev-texlive/texlive-fontsrecommended
media-fonts/arphicfonts
media-fonts/baekmuk-fonts
media-fonts/corefonts
media-fonts/liberation-fonts
media-fonts/urw-fonts
virtual/ttf-fonts
x11-apps/xlsfonts
x11-proto/fontsproto

"flpsed" rely on ghostscript but when ghostscript couldn't find the correct fonts "flpsed" wouldn't scale fonts on the screen correctly.
Comment 10 Rafał Mużyło 2012-01-19 07:14:55 UTC
(In reply to comment #9)

fltk is by no means a good example in regard of font matching.