geofabrik / openstreetmap-carto-vector-tiles

A general-purpose OpenStreetMap mapnik style, in CartoCSS, served with vector tiles
Other
50 stars 4 forks source link

Tessera: Font not found / Mapnik does #2

Open tds4u opened 7 years ago

tds4u commented 7 years ago

*MAPNIK_FONT_PATH=$(find /usr/share/fonts/ -type f | sed 's|/[^/]$$||' | uniq | paste -s -d: -) sudo -u gis ./node_modules/.bin/tessera -c tessera-serve-vector-tiles.json -p 9000**

/var/www/XYZ/openstreetmap-carto-vector-tiles/node_modules/tessera/server.js:111
          throw err;
          ^

Error: Failed to find font face 'Noto Sans UI Regular' in FontSet 'fontset-0' in FontSet
    at Error (native)

Fonts from NodeJS (via node-fonts): nodejs ./test.js |grep UI

Noto Naskh Arabic UI
Noto Sans Bengali UI
Noto Sans Devanagari UI
Noto Sans Gujarati UI
Noto Sans Gurmukhi UI
Noto Sans Kannada UI
Noto Sans Khmer UI
Noto Sans Lao UI
Noto Sans Malayalam UI
Noto Sans Myanmar UI
Noto Sans Oriya UI
Noto Sans Tamil UI
Noto Sans Telugu UI
Noto Sans Thai UI
Noto Sans UI

Fonts found by Mapnik: python -c "from mapnik import FontEngine as e;print '\n'.join(e.instance().face_names())" | grep "UI"

Noto Naskh Arabic UI Bold
Noto Naskh Arabic UI Regular
Noto Sans Bengali UI Bold
Noto Sans Bengali UI Regular
Noto Sans Devanagari UI Bold
Noto Sans Devanagari UI Regular
Noto Sans Gujarati UI Bold
Noto Sans Gujarati UI Regular
Noto Sans Gurmukhi UI Bold
Noto Sans Gurmukhi UI Regular
Noto Sans Kannada UI Bold
Noto Sans Kannada UI Regular
Noto Sans Khmer UI Bold
Noto Sans Khmer UI Regular
Noto Sans Lao UI Bold
Noto Sans Lao UI Regular
Noto Sans Malayalam UI Bold
Noto Sans Malayalam UI Regular
Noto Sans Myanmar UI Bold
Noto Sans Myanmar UI Regular
Noto Sans Oriya UI Bold
Noto Sans Oriya UI Regular
Noto Sans Tamil UI Bold
Noto Sans Tamil UI Regular
Noto Sans Telugu UI Bold
Noto Sans Telugu UI Regular
Noto Sans Thai UI Bold
Noto Sans Thai UI Regular
Noto Sans UI Bold
Noto Sans UI Bold Italic
Noto Sans UI Italic
Noto Sans UI Regular
amandasaurus commented 6 years ago

My knowledge of node-js and how it works isn't very good, so I'm not sure what is causing this, or what a solution/work around is...