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
Added URL to upstream bug, currently assigned to upstream Product: poppler.
(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).
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.
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.
This bug is ripe for closing!
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.
Created attachment 194227 [details] /etc/fonts/local.conf
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.
*** Bug 276588 has been marked as a duplicate of this bug. ***
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.
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...
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.
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.
If media-fonts/gnu-gs-fonts-other is installed the symlinking fails (existing directory) and ghostscript stops working.
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).
(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.
(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.
And gone.