Bug#1029168: fonts-urw-base35: Apache pdfbox cannot load fonts. Complains "Start marker missing"
control: severity -1 minor
Hi Jorge,
Am 18.01.2023 20:37, schrieb Jorge Moraleda:
[2023-01-18 13:15:26] [info] 2023-01-18 13:15:26.561 WARN 228307 ---
[alina-
utility-1] o.a.p.p.f.FileSystemFontProvider : Could not load
font file:
/usr/share/fonts/X11/Type1/NimbusSans-BoldItalic.pfb
well, as outlined in the package's NEWS file [1], upstream has decided
to rename the binary font files and in that course change the file
extensions from .pfb to .t1.
[1]
https://sources.debian.org/src/fonts-urw-base35/20200910-6/debian/NEWS/
I am not familiar with fonts, but according to the source code
(https://github.com/apache/pdfbox/blob/trunk/fontbox/src/main/java/org/apache/fontbox/pfb/PfbParser.java)
it appears that pdfbox expects the font files in pfb format to start
with
character 0x80 but they do not.
I can see two alternatives how you could solve your problem here:
1) Convince pdfbox upstream that .t1 is a reasonable file extension for
a binary Type 1 font file and in fact means the same as .pfb.
2) Introduce some symlinks with .pfb extensions pointing to the file
with the .t1 extension.
A third alternative would be to rename the font files back to .pfb
extension, but that would be against upstream's will and is thus out of
question for the Debian package.
- Fabian
Reply to: