#1057141 python3-pgmagick: Image annotate fails on bookworm as the default font no longer installed

Package:
python3-pgmagick
Source:
python3-pgmagick
Description:
Yet Another Python wrapper for GraphicsMagick
Submitter:
Justin Saunders
Date:
2023-11-30 13:48:03 UTC
Severity:
normal
#1057141#5
Date:
2023-11-30 13:45:06 UTC
From:
To:
Dear Maintainer,

The default font for pgmagick is not installed in bookworm, it is in
bullseye. This short program shows the issue.

import pgmagick

geo = pgmagick.Geometry(600, 600)
red = pgmagick.Color('red')
img = pgmagick.Image(geo, red)

img.fillColor('black')
img.annotate('This is a test', '+5+10')
img.write('test.png')

On bookworm this produces:

Traceback (most recent call last):
  File "//test.py", line 8, in <module>
    img.annotate('This is a test', '+5+10')
RuntimeError: Magick: Unable to read font (/usr/share/fonts/type1/gsfonts/n019003l.pfb) reported by magick/annotate.c:1174 (RenderFreetype)

If you use one of the installed fonts with the font method this call
works.

Thanks

Justin