FS#68453 - [mapnik] fails to find any font face

Attached to Project: Community Packages
Opened by mephinet (mephinet) - Wednesday, 28 October 2020, 16:47 GMT
Last edited by Morten Linderud (Foxboron) - Monday, 16 November 2020, 21:06 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

I just started looking into local processing of openstreetmap data - so please be kind if I'm mistaken. After importing data into Postgis using osm2psql and the openstreetmap-carto style, I tried to render my first map with mapnik-render. However, invocation fails with:

Error Failed to find font face 'Noto Sans Regular' in FontSet 'fontset-0' in FontSet at line 15 of 'mapnik.xml'

I double-checked that the package noto-fonts is installed, it is. Furthermore, when commenting out *all* fonts except for DejaVu Sans Book in the file, it still complains:

Error Failed to find font face 'DejaVu Sans Book' in FontSet 'fontset-0' in FontSet at line 15 of 'mapnik.xml'

So I have the feeling that mapnik-render is unable to find *any* font on my system. Can you please check whether maybe mapnik's font rendering was broken by a recent fontconfig update? Setting FC_DEBUG didn't yield any additional output. Apart from mapnik, I haven't seen any issues wrt fonts on my system...

Additional info:
noto-fonts 20190926-4
mapnik 3.0.23-2

Steps to reproduce:

$ pacman -S noto-fonts mapnik
$ mapnik-render /the/attached/mini.xml out.png
   mini.xml (0.9 KiB)
This task depends upon

Closed by  Morten Linderud (Foxboron)
Monday, 16 November 2020, 21:06 GMT
Reason for closing:  Upstream
Comment by mephinet (mephinet) - Friday, 30 October 2020, 00:33 GMT
I've looked into the source code of mapnik. mapnik-render only registers the directory ./fonts, but none of the systemwide used font dirs - so it's no wonder why they aren't found.
So this is no packaging issue, I'll to upstream.

Loading...