[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1029168: fonts-urw-base35: Apache pdfbox cannot load fonts. Complains "Start marker missing"



Hi Fabian!

On Fri, 20 Jan 2023, Fabian Greffrath wrote:

> Am Donnerstag, dem 19.01.2023 um 13:57 -0500 schrieb Jorge Moraleda:
> > Fabian mentioned that "upstream has decided to rename the binary font
> > files and in that course change the file extensions from .pfb to
> > .t1." but from the above experiment it seems that upstream changed
> > the actual file format, and then they changed the file extensions to
> > match the new format.
> 
> to be honest, I wasn't even aware of the format change until yesterday.

Me too.  But as I wrote in my previous mail, this wasn't a change from
binary to ascii but only the 4 bytes that make file(1) think that it
is a binary font at the beginning of the file are missing now... 

> > IMHO opinion, the solution would be to either not create the symbolic
> > links or to preserve the original names including the extension. I
> > don't know enough to know what is best.

> The symlinks were introduced to facilitate the transition from the
> gsfonts package, which had its fonts installed in these directories
> with these exact file names. Maybe it makes sense to remove them
> again immediately after the next Debian stable release to prevent
> subtle bugs like this. @roland what do you think?

I'm not sure why we used .pfb in these symlinks (and in
fonts-urw-base35.scale) instead of .t1 extension.
Except this the symlinks are there because the X11 font path by
default point to
 /usr/share/fonts/X11/misc,
 /usr/share/fonts/X11/cyrillic,
 /usr/share/fonts/X11/100dpi/:unscaled,
 /usr/share/fonts/X11/75dpi/:unscaled,
 /usr/share/fonts/X11/Type1,
 /usr/share/fonts/X11/100dpi,
 /usr/share/fonts/X11/75dpi,
 built-ins

If we want to make fonts available to X11 we have to put them into
these paths (especially /usr/share/fonts/X11/Type1) place the
<package>.scale file into /etc/X11/fonts/Type1/ and run
 update-fonts-scale Type1;update-fonts-dir --x11r7-layout Type1;\
 update-fonts-alias --include /etc/X11/fonts/Type1/fonts-urw-base35.alias Type1
(via dh_installxfonts) in postinst to make all this available to the
font server.

So from my point of view we shouldn't remove the symlinks (since we
want to use these fonts in X11) but we should change the symlink
filenames from .pfb to .t1 and change urw-fonts-base35.scale
accordingly (hope that this works as expected, since I didn't try this
out yet).

Greetings
Roland

Attachment: signature.asc
Description: PGP signature


Reply to: