Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1056974: php-dompdf: Package lacks *.ufm files for fonts and can't produce PDFs with non Windows ANSI characters

42 views
Skip to first unread message

Paweł Pękala

unread,
Nov 27, 2023, 7:20:05 AM11/27/23
to
Package: php-dompdf
Version: 2.0.3+dfsg-1
Severity: important

Dear Maintainer,

php-dompdf don't provide font metrics *.ufm files for fonts it uses. Upstream
distribution files have them, but they aren't packaged by debian package.
These files are necessary for php-font-lib package to recognize them and to be
able to embed them in output PDF file as described here:

https://github.com/dompdf/dompdf/wiki/About-Fonts-and-Character-Encoding

Without embedded fonts non Windows ANSI characters are garbled and PDF file is
useless.

-- FIX --

After copying by hand mentioned files to /usr/share/php/dompdf/lib/fonts/ from
distribution file everything works as expected. Fonts are embedded in PDF file
and characters are displayed correctly.


-- System Information:
Debian Release: 12.2
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.1.0-13-amd64 (SMP w/2 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages php-dompdf depends on:
ii fonts-dejavu-core 2.37-6
ii fonts-dejavu-extra 2.37-6
pn php-common <none>
pn php-dompdf-svg-lib <none>
pn php-font-lib <none>
pn php-masterminds-html5 <none>
pn php-mbstring <none>
pn php-xml <none>
pn sdop <none>

php-dompdf recommends no packages.

Versions of packages php-dompdf suggests:
pn php-gd <none>
pn php-gmagick <none>
pn php-imagick <none>

Paweł Pękala

unread,
Dec 4, 2023, 7:10:06 AM12/4/23
to
W dniu 2.12.2023 o 12:10, William Desportes pisze:
> Control: tags -1 wontfix
>
> Hello,
>
> Only "DejaVu*" fonts have ufm files.
>
> But I had to exclude the DejaVu fonts for licensing reasons:
> https://sources.debian.org/src/php-dompdf/2.0.3%2Bdfsg-3/debian/copyright/#L7

My research was wrong, I can see now that DejaVU fonts are provided by
other package by symlinking.

>
> Let me know your thoughts

I think that solution provided by Robin Gustafsson should fix my issue.

Thanks for looking into this.

William Desportes

unread,
Dec 4, 2023, 3:30:05 PM12/4/23
to
Control: tags -1 - wontfix

Hi,

I was wrong while doing my research about the licensing, sorry about
that.

> I think that solution provided by Robin Gustafsson should fix my issue.

Definitely !
I approved the PR and should proceed into sending it to unstable
shortly.

Thank you all for participating on this bug

--
William
0 new messages