Bug 1595490

Summary: libwmf does not work: ERROR: font.c (1335): wmf_ipa_font_map: failed to load *any* font!
Product: [Fedora] Fedora Reporter: Jehan <jehan.marmottard>
Component: libwmfAssignee: Caolan McNamara <caolanm>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 28CC: alexl, caillon+fedoraproject, caolanm, john.j5live, mbarnes, rhughes, rstrode, sandmann
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: libwmf-0.2.8.4-56.fc27 libwmf-0.2.8.4-56.fc28 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-08-11 19:12:08 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jehan 2018-06-27 00:59:36 UTC
Description of problem:

I am one of the GIMP devs and realized that wmf loading is not working (neither in my master build nor in the GIMP 2.8 package in Fedora 28).

In terminal, I get this weird error:

> ERROR: font.c (1335): wmf_ipa_font_map: failed to load *any* font!

In my flatpak build, I realize that /usr/share/libwmf/fonts/ is full of *.afm and *.pfb files, but this directory on Fedora 28 is empty but for a `fontmap` file.

Checking the spec file, it looks like they are deleted on purpose for being duplicate: https://src.fedoraproject.org/cgit/rpms/libwmf.git/tree/libwmf.spec#n152

I also note that the fontmap file has various paths to /usr/share/fonts/default/Type1/*.(pfb|afm) but these files don't exist and belong to no other package (checked with `dnf whatprovides`).


Version-Release number of selected component (if applicable): libwmf-0.2.8.4-53.fc28.x86_64


How reproducible: always


Steps to Reproduce:
1. Download some sample, for instance: https://github.com/tienfuc/gdcmdtools/blob/master/samples/sample.wmf
2. Install GIMP: sudo dnf install gimp
3. Try to open sample.wmf

Actual results: opening the wmf sample fails.


Expected results: it should open correctly. If you install GIMP from flatpak for instance, it works fine (because the fonts/ dir is not empty).

Additional info: I actually even went as far as testing and just adding back all the pfb and afm files installed normally into /usr/share/libwmf/fonts/ and wmf loading will work fine again. You'll find them under fonts/ in the tarball (https://src.fedoraproject.org/repo/pkgs/rpms/libwmf/libwmf-0.2.8.4.tar.gz/d1177739bf1ceb07f57421f0cee191e0/libwmf-0.2.8.4.tar.gz). No new build, just adding the fonts which Fedora current spec file is removing fixed libwmf.

Comment 1 Caolan McNamara 2018-08-08 11:12:43 UTC
urw-fonts and ghostscript for rearranged and the font filenames are all changed

Comment 2 Fedora Update System 2018-08-08 11:57:49 UTC
libwmf-0.2.8.4-56.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-5307388269

Comment 3 Fedora Update System 2018-08-08 11:57:56 UTC
libwmf-0.2.8.4-56.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-8d75f4ad14

Comment 4 Fedora Update System 2018-08-08 14:26:59 UTC
libwmf-0.2.8.4-56.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-5307388269

Comment 5 Fedora Update System 2018-08-08 17:14:58 UTC
libwmf-0.2.8.4-56.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-8d75f4ad14

Comment 6 Fedora Update System 2018-08-11 19:12:08 UTC
libwmf-0.2.8.4-56.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2018-08-16 07:23:41 UTC
libwmf-0.2.8.4-56.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.