Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't find FontSet #21

Open
DenisCarriere opened this issue Jul 9, 2015 · 3 comments
Open

Can't find FontSet #21

DenisCarriere opened this issue Jul 9, 2015 · 3 comments

Comments

@DenisCarriere
Copy link

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.

mapnik/node-mapnik#263

$ tessera tmstyle://./Style.tm2

Listening at http://0.0.0.0:8080/

/usr/local/lib/node_modules/tessera/server.js:47
        throw err;
              ^
Error: Failed to find font face 'Open Sans Bold' in FontSet 'fontset-0' in FontSet
@mojodna
Copy link
Owner

mojodna commented Jul 9, 2015

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.

@mojodna
Copy link
Owner

mojodna commented Jul 9, 2015

(Yes, this should probably be documented somewhere ;-)

@DenisCarriere
Copy link
Author

DenisCarriere commented Jul 9, 2015 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants