Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

load_map should warn about missing fonts in fontsets #1791

Closed
herm opened this Issue · 3 comments

3 participants

@herm
Collaborator

Even when strict mode is disabled a missing font in a fontset should display a warning message.

@springmeyer
Owner

+1 - or even better throw. It looks like this needs to be done in src/text_properties / char_properties::from_xml, but its hard to tell exactly. Maybe checking code should be added to load_map.cpp to avoid needed to repeat in multiple places...

@strk

I'd like to get an error at load time too, as per CartoDB/Windshaft-cartodb#90.
Or (optionally with an XML parameter?) make the missing-face event tolerated by using a different font (system default or something).

@springmeyer
Owner

@strk mapnik.Map.load/loadSync have an optional options argument that can contain {strict: true} which will trigger more font errors a load time.

@springmeyer springmeyer added this to the Mapnik 3.x milestone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.