Open DenisCarriere opened 9 years ago
tessera intentionally doesn't register system fonts (to encourage maps to be self-contained units). You can either copy Open Sans into a fonts/
directory and add font-directory: url(fonts/);
to your Map
element (in CartoCSS) or you can set MAPNIK_FONT_PATH
to the location of Open Sans on your system.
(Yes, this should probably be documented somewhere ;-)
Thanks for the reply, this is very useful and I haven't tried this yet. I agree that the map packages should be self contained. Thanks again!
I'm using Mapbox Studio to create the TM2 file, however it doesn't seem to recognize the FontSet.
Another related discussion about this error can be found here, but no working solution. It seems to be resolved on the Mapnik side of things, but not Tessera.
https://github.com/mapnik/node-mapnik/issues/263