Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 716856 - media-libs/fontconfig Checkboxes in PDF broken by new fontconfig
Summary: media-libs/fontconfig Checkboxes in PDF broken by new fontconfig
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Fonts Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-10 00:00 UTC by Siuchung Cheung (Clement)
Modified: 2021-03-06 02:45 UTC (History)
5 users (show)

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


Attachments
Restore fontconfig aliases for URW++ fonts (fontconfig-2.12.6-restore-urw-aliases.patch,5.90 KB, patch)
2020-06-27 03:54 UTC, Anon Emuss
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Siuchung Cheung (Clement) 2020-04-10 00:00:07 UTC
Okular, flpsed, and most likely all other PDF software on Gentoo, currently displays the missing glyph tofu for all check boxes due to this bug:
https://bugzilla.redhat.com/show_bug.cgi?id=468565

This affects IRS forms and a lot of bank documents.

Fix was upstreamed in fontconfig many years ago. Why the problem resurfacing? Because the fix (Aliasing Zapf Dingbats to Dingbats from URW has been moved out of fontconfig in 2017.)

https://cgit.freedesktop.org/fontconfig/commit/?id=cc67d7df172431cb345ed42c27eb852e2ee65ae2

From commit comments:
  They have become a part of (URW)++ upstream release now:
  https://github.com/ArtifexSoftware/urw-base35-fonts/tree/master/fontconfig

+NOTE: The (URW)++ fonts mappings of generics to specifics were removed, because
+      upstream now includes them in their release of (URW)++ Core Font Set here:
+      https://github.com/ArtifexSoftware/urw-base35-fonts/tree/master/fontconfig

The fix is now here:
https://github.com/ArtifexSoftware/urw-base35-fonts/blob/master/fontconfig/urw-d050000l.conf

It seems our urw-fonts package is based on Fedora Core 13. This is what Redhat has to say about this problem:
https://bugzilla.redhat.com/show_bug.cgi?id=1541022

The 'urw-fonts' package is now obsolete and has been replaced with new 'urw-base35-fonts', which is being kept up-to-date.

'urw-fonts' will be dropped at the end-of-life of Fedora 27.

Please, update your specfile and make sure your package builds/works properly with new version of the (URW)++ fonts.


Note that current Fedora version is 31.

So the problem is we have latest fontconfig, which expects the fix to be in latest urw-base35-fonts. But we don't have the latest urw-base35-fonts. Only the ancient urw-fonts without this fix.

We seem to have a previous effort to package the new fonts. https://bugs.gentoo.org/589890 But no activity on it for some time.

Meanwhile more and more packages drop support for the old urw-fonts causing other problems. https://bugs.gentoo.org/621100

We need to package the new version before the old version decays to an unmaintainable mess.
Comment 1 Siuchung Cheung (Clement) 2020-04-10 00:08:42 UTC
I can confirm the checkbox problem is fixed in both Okular and flpsed with the urw-fonts-20170801.ebuild from https://bugs.gentoo.org/589890 and enabled 30-urw-d050000l.conf. Confirmed upstream 20170801 is still the latest release.
Comment 2 Anon Emuss 2020-06-27 03:54:39 UTC
Created attachment 646636 [details, diff]
Restore fontconfig aliases for URW++ fonts

This patch was developed for fontconfig-2.12.6 by reverting the commit that removed the aliases.  It fixed the checkbox issue for me in fontconfig-2.12.6, and appears to do so in the current stable fontconfig-2.13.0-r4.  It is a bandage for the problem, not a fix. The bugs referenced in other comments describe better fixes which are not yet implemented in Gentoo, but for those who would like help getting checkboxes to work again, I hope this patch will help.