Bug 1595490 - libwmf does not work: ERROR: font.c (1335): wmf_ipa_font_map: failed to load *any* font!
Summary: libwmf does not work: ERROR: font.c (1335): wmf_ipa_font_map: failed to load ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: libwmf
Version: 28
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Caolan McNamara
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-06-27 00:59 UTC by Jehan
Modified: 2018-08-16 07:23 UTC (History)
8 users (show)

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:
Clone Of:
Environment:
Last Closed: 2018-08-11 19:12:08 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.