Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 247657 - media-fonts/gnu-gs-fonts-std removal request (problem with nimbus font - defaults to bold)
Summary: media-fonts/gnu-gs-fonts-std removal request (problem with nimbus font - defa...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo Fonts Team
URL: http://tinderbox.dev.gentoo.org/misc/...
Whiteboard: masked for removal 24 Feb 2012
Keywords: PMASKED
: 276588 (view as bug list)
Depends on: 288861
Blocks: 256088 303591
  Show dependency tree
 
Reported: 2008-11-20 02:51 UTC by Jacopo
Modified: 2012-02-28 20:51 UTC (History)
6 users (show)

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


Attachments
new ebuild for ghostscript that resolves the bug (ghostscript-gpl-8.63-r2.ebuild,5.04 KB, text/plain)
2009-02-26 05:40 UTC, Carl Michal
Details
/etc/fonts/local.conf (etc-fonts-local.conf,1.24 KB, text/plain)
2009-06-11 09:59 UTC, hirakendu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jacopo 2008-11-20 02:51:37 UTC
I am unsure if this is a problem in the font package (media-fonts/gnu-gs-fonts-std-8.11) or in the configuration files for fontconfig. In any case with the default configuration the default width for Nimbus font is Medium (i.e. Bold)

$fc-match Times
n021004l.pfb: "Nimbus Roman No9 L" "Medium"

by adding some lines to the configuration file (~/.fonts.conf) as reported in 

http://bugs.archlinux.org/task/10593?dev=179

the default width is now "regular"


Reproducible: Didn't try

Steps to Reproduce:
Emerge fontconfig + media-fonts/gnu-gs-fonts-std-8.11

Actual Results:  
Any document opened with Poppler would display Times-Bold instead of Times

Expected Results:  
Times should be displayed as Times and Times-Bold as Times-Bold

Portage 2.2_rc13 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r7 x86_64)
=================================================================                                
System uname: Linux-2.6.25-gentoo-r7-x86_64-AMD_Turion-tm-_64_X2_TL-62-with-glibc2.2.5           
Timestamp of tree: Thu, 20 Nov 2008 00:08:01 +0000                                               
app-shells/bash:     3.2_p17-r1                                                                  
dev-java/java-config: 1.3.7, 2.1.6-r1                                                            
dev-lang/python:     2.4.4-r13, 2.5.2-r7                                                         
dev-python/pycrypto: 2.0.1-r6                                                                    
dev-util/cmake:      2.6.2                                                                       
sys-apps/baselayout: 1.12.11.1                                                                   
sys-apps/sandbox:    1.2.18.1-r2                                                                 
sys-devel/autoconf:  2.13, 2.61-r1                                                               
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1                                        
sys-devel/binutils:  2.18-r1                                                                     
sys-devel/gcc-config: 1.4.0-r4                                                                   
sys-devel/libtool:   1.5.24                                                                      
virtual/os-headers:  2.6.23-r3                                                                   
ACCEPT_KEYWORDS="amd64"                                                                          
CBUILD="x86_64-pc-linux-gnu"                                                                     
CFLAGS="-mtune=k8 -O2 -pipe -ggdb "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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/portage/local/layman/kde-testing /usr/portage/local/layman/kde-crazy /usr/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 apm bash-completion berkdb bzip2 cairo cli cracklib crypt cups dri emacs fortran gdbm gif gpm hal iconv ipv6isdnlog jpeg midi mmx mudflap multilib ncurses nls nptl nptlonly openal opengl opengl-video openmp pam pcre perl png pppd preview-latexpython qt3 qt3support qt4 readline reflection sdl sdl-image sdl-sound session smp spl sse sse2 ssl sysfs syslog tcpd tetex tiff tls unicode xorg xosd xrandr xrender xscreensaver xv zlib" ALSA_CARDS="hda-intel" 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 synaptics keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Timo Gurr (RETIRED) gentoo-dev 2008-11-21 12:17:04 UTC
Added URL to upstream bug, currently assigned to upstream Product: poppler.
Comment 2 Jacopo 2008-11-21 13:44:43 UTC
(In reply to comment #1)
> Added URL to upstream bug, currently assigned to upstream Product: poppler.

I don't think it is a poppler bug; poppler uses fontconfig to choose among the installed fonts when rendering not embedded fonts, and fontconfig returns the bold font as if it were regular. The issue would appear in any package using fontconfig (i.e. openoffice as well I guess).

Comment 3 Carl Michal 2009-02-25 22:51:28 UTC
I see this same problem.

After burning an hour on this.  The problem lies in the n021004l.pfb within
media-fonts/gnu-gs-fonts-std

that font is dated Dec 31, 2002 and appears to contain some incorrect metadata.

The n021004l.pfb in urw-fonts is dated Jun 19, 2004, and is ok.

If you delete the n021004l.pfb in the ghostscript directory the problem goes away.
Comment 4 Carl Michal 2009-02-26 05:40:23 UTC
Created attachment 183219 [details]
new ebuild for ghostscript that resolves the bug

Attached is an ebuild for ghostscript that resolves this bug.

This version replaces the dependency on gnu-gs-fonts-std with one on urw-fonts instead, changes the search path so ghostscript finds the urw-fonts, and adds an ewarn that gnu-gs-fonts-std should be removed, with a link back to this bug for explanation.
Comment 5 Carl Michal 2009-03-12 22:49:01 UTC
This bug is ripe for closing!
Comment 6 hirakendu 2009-06-11 09:58:23 UTC
I too encountered this problem. (PDF readers that depend on poppler, like evince and okular, show Times font as bold. Likewise xpdf, kpdf, acroread don't have this issue.) As mentioned here, unmerging gnu-gs-fonts-std fixes the issue. The question is that if this package is really reuiqred. For example, after unmerging this package, kpdf stopped showing times fonts properly.

As mentioned in the archlinux bug referred above (fonts-fox.conf in comment #2), I am currently doing away with editing /etc/fonts/local.conf.
Comment 7 hirakendu 2009-06-11 09:59:42 UTC
Created attachment 194227 [details]
/etc/fonts/local.conf
Comment 8 Peter Volkov (RETIRED) gentoo-dev 2009-10-13 11:01:15 UTC
Ok, I think Carl is right and actually... This was always questionable for me where do media-fonts/urw-fonts package comes from. I failed to find anything related on http://www.urwpp.de/ HOMEPAGE. So I did some investigation and this is how I understand situation about all this mess currently:


At some point URW++ released fonts under GPL license. After that they were took and improved by Valek Filippov and this work was somehow related with AFPL... At least all work can be seen at their svn server here:

http://svn.ghostscript.com/ghostscript/trunk/urw-fonts/
and the latest tag is here:
http://svn.ghostscript.com/ghostscript/tags/urw-fonts-1.0.7pre44/

Also at some point releases where published on sf.net: http://sourceforge.net/projects/gs-fonts/files/ but this does not happen any more and everybody syncs with svn.ghostscript.com and thus actually we have fonts from there... But

We have media-fonts/urw-fonts-2.4.6 in the tree. Where do this strange version comes from? Well we use redhat versions here and just followed them. It's hard to say where did that take this strange version since they also use fonts from svn.ghostscript.com: look at ChangeLog:

Tue Jan 8 23:00:00 2008 Than Ngo 2.4-2
- update to 1.0.7pre44

That's all story. I think I'll add similar note to urw-fonts ebuild itself..


Bottom line: looks like media-fonts/gnu-gs-fonts-std are just very old version of media-fonts/urw-fonts and it is broken. If everything I wrote here is correct (I'm waiting for your comments, guys ;) ) I'm going to keyword urw-fonts on missed arch and proceed removal of media-fonts/gnu-gs-fonts-std.


BTW, thank you very much Carl for your investigation. It really helped much.
Comment 9 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2009-10-27 21:42:27 UTC
*** Bug 276588 has been marked as a duplicate of this bug. ***
Comment 10 Tomáš Chvátal (RETIRED) gentoo-dev 2010-02-03 19:46:13 UTC
Pva's deduction above is correct from what i can investingate.

Peter wanna proceed with the stuff? It makes okular stuff look fugly so i would like it disappear.
Comment 11 Peter Volkov (RETIRED) gentoo-dev 2010-02-03 20:15:22 UTC
Tomáš I will. Just found that imagemagick and other software (probably ghostscript) are tightly bounded to the paths in gnu-gs-fonts-std and this this is more job to do then just mask rename/packages...
Comment 12 Dror Levin (RETIRED) gentoo-dev 2010-03-23 12:17:56 UTC
The easiest solution IMO would be to revbump gnu-gs-fonts-std and in the new revision dep on urw-fonts and instead of installing anything just add the symlink /usr/share/fonts/default/ghostscript -> /usr/share/fonts/urw-fonts. What do you think?
I've already did that change locally and it seems to work fine. I can commit it if everyone approves.

Note that this should also fix bug 256088.
Comment 13 Dror Levin (RETIRED) gentoo-dev 2010-03-26 12:47:43 UTC
I bumped urw-fonts and it now blocks gnu-gs-fonts-std. I also revbumped ghostscript-gpl to depend on urw-fonts and install the symlink it needs. All we need now is for media-fonts/urw-fonts-2.4.9 and app-text/ghostscript-gpl-8.71-r2 to be stabilized and then we can remove media-fonts/gnu-gs-fonts-std from the tree.
Comment 14 emerald 2010-03-29 21:28:19 UTC
If media-fonts/gnu-gs-fonts-other is installed the symlinking fails (existing directory) and ghostscript stops working.
Comment 15 Dror Levin (RETIRED) gentoo-dev 2010-03-29 23:35:20 UTC
Well, urw-fonts-2.4.9 blocks gnu-gs-fonts-std, and ghostscript-gpl (which installs the symlink) depends on that version, so gnu-gs-fonts-std cannot be installed while ghostscript-gpl creates the symlink. Portage should take care of everything if you simply upgrade to latest revision of ghostscript-gpl (automatically install urw-fonts, remove gnu-gs-fonts-std and then install ghostscript-gpl, as intended).
Comment 16 Pascal Bourguignon 2010-06-26 12:59:18 UTC
(In reply to comment #13)
> I bumped urw-fonts and it now blocks gnu-gs-fonts-std. I also revbumped
> ghostscript-gpl to depend on urw-fonts and install the symlink it needs. All we
> need now is for media-fonts/urw-fonts-2.4.9 and
> app-text/ghostscript-gpl-8.71-r2 to be stabilized and then we can remove
> media-fonts/gnu-gs-fonts-std from the tree.

But what I observe when I --update world, is that I have to remvoe gnu-gs-font to let urw-fonts be installed (ghostscript-gs depends on them).  But without gnu-gs-font, ghostscript-gs and any program that uses it fails.  So I have to manually remove urw-fonts and re-install gnu-gs-font after each --update world to make it work.
Comment 17 Andreas K. Hüttel archtester gentoo-dev 2012-01-24 22:02:31 UTC
(In reply to comment #13)
> I bumped urw-fonts and it now blocks gnu-gs-fonts-std. I also revbumped
> ghostscript-gpl to depend on urw-fonts and install the symlink it needs. All we
> need now is for media-fonts/urw-fonts-2.4.9 and
> app-text/ghostscript-gpl-8.71-r2 to be stabilized and then we can remove
> media-fonts/gnu-gs-fonts-std from the tree.

Right. Masked for lastriting finally, together with media-fonts/gnu-gs-fonts-other.
Comment 18 Andreas K. Hüttel archtester gentoo-dev 2012-02-28 20:51:07 UTC
And gone.