Closed zeysh closed 5 years ago
Interesting bug, it seems to be a quite common issue for software using libwmf.
Googling the error message, I got error in imagemagik, gimp and inkscape.
From stracing things, it looks like libwmf is trying to load fonts in '/usr/share/fonts/type1/gsfonts':
strace -f -e file vss2svg-conv -i X430.vss -o out 2>&1 | grep font
open("/usr/lib/x86_64-linux-gnu/libfontconfig.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/var/lib/ghostscript/fonts/Fontmap", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("//usr/share/fonts/type1/gsfonts/n021003l.pfb", {st_mode=S_IFREG|0644, st_size=101374, ...}) = 0
stat("//usr/share/fonts/type1/gsfonts/n021003l.afm", {st_mode=S_IFREG|0644, st_size=43432, ...}) = 0
stat("//usr/share/fonts/type1/gsfonts/n021003l.pfb", {st_mode=S_IFREG|0644, st_size=101374, ...}) = 0
open("//usr/share/fonts/type1/gsfonts/n021003l.pfb", O_RDONLY) = 4
stat("//usr/share/fonts/type1/gsfonts/n021003l.afm", {st_mode=S_IFREG|0644, st_size=43432, ...}) = 0
open("//usr/share/fonts/type1/gsfonts/n021003l.afm", O_RDONLY) = 4
open("/var/lib/ghostscript/fonts/Fontmap", O_RDONLY) = -1 ENOENT (No such file or directory)
[...]
This directory belongs to the package gsfonts
under Debian, and this package is only tagged as "recommended" and will not be systematically installed on minimal setups.
Under Debian, installing gsfonts
should solve the issue. Not sure about the package name under Arch, but it should be quite similar.
I will complete the documentation to mention this requirement.
I was unfortunately not aware of this hidden dependency, I tend to be lazy and let recommended packages be installed automatically on my machines, so my systems are not as minimal as yours.
Thanks for reporting the issue.
I've updated the documentation.
Could you confirm installing gsfonts fixed the issue? It should work but I'm not 100% certain I'm not missing something else.
Hi,
Works perfectly on Debian with gsfonts
package.
But not with Arch. gsfonts
package install fonts in /usr/share/fonts/gsfonts/
ls /usr/share/fonts/gsfonts/
C059-BdIta.otf NimbusRoman-Bold.otf NimbusSansNarrow-BoldOblique.otf URWBookman-DemiItalic.otf
C059-Bold.otf NimbusRoman-BoldItalic.otf NimbusSansNarrow-Oblique.otf URWBookman-Light.otf
C059-Italic.otf NimbusRoman-Italic.otf NimbusSansNarrow-Regular.otf URWBookman-LightItalic.otf
C059-Roman.otf NimbusRoman-Regular.otf P052-Bold.otf URWGothic-Book.otf
D050000L.otf NimbusSans-Bold.otf P052-BoldItalic.otf URWGothic-BookOblique.otf
NimbusMonoPS-Bold.otf NimbusSans-BoldItalic.otf P052-Italic.otf URWGothic-Demi.otf
NimbusMonoPS-BoldItalic.otf NimbusSans-Italic.otf P052-Roman.otf URWGothic-DemiOblique.otf
NimbusMonoPS-Italic.otf NimbusSans-Regular.otf StandardSymbolsPS.otf Z003-MediumItalic.otf
NimbusMonoPS-Regular.otf NimbusSansNarrow-Bold.otf URWBookman-Demi.otf
but libwmf
is trying to load fonts in /usr/share/fonts/Type1
x430-visio-stencil]# strace -f -e file vss2svg-conv -i X430.vss -o out 2>&1 | grep font
openat(AT_FDCWD, "/usr/lib/libfontconfig.so.1", O_RDONLY|O_CLOEXEC) = 3
stat("/usr/share/fonts/Type1/NimbusRoman-Regular.t1", 0x7ffeeeb20060) = -1 ENOENT (No such file or directory)
ERROR: font.c (1339): wmf_ipa_font_map: failed to load *any* font!
stat("/usr/share/fonts/Type1/NimbusRoman-Regular.t1", 0x7ffeeeb20060) = -1 ENOENT (No such file or directory)
ERROR: font.c (1339): wmf_ipa_font_map: failed to load *any* font!
stat("/usr/share/fonts/Type1/NimbusRoman-Regular.t1", 0x7ffeeeb20060) = -1 ENOENT (No such file or directory)
ERROR: font.c (1339): wmf_ipa_font_map: failed to load *any* font!
stat("/usr/share/fonts/Type1/NimbusRoman-Regular.t1", 0x7ffeeeb20060) = -1 ENOENT (No such file or directory)
ERROR: font.c (1339): wmf_ipa_font_map: failed to load *any* font!
stat("/usr/share/fonts/Type1/NimbusRoman-Regular.t1", 0x7ffeeeb20060) = -1 ENOENT (No such file or directory)
ERROR: font.c (1339): wmf_ipa_font_map: failed to load *any* font!
stat("/usr/share/fonts/Type1/NimbusRoman-Regular.t1", 0x7ffeeeb20060) = -1 ENOENT (No such file or directory)
ERROR: font.c (1339): wmf_ipa_font_map: failed to load *any* font!
I close this issue. Many thanks for your help Have a nice day
Hi,
I can't fix an issue with the wmf API.
When I try to convert a vss file I got this message. Looks like an issue with libwmf and map fonts.
I tried on Arch with this https://aur.archlinux.org/packages/libvisio2svg/ And on Debian with
Have I miss something? Many thanks