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

Embedded/Editable Fonts in SVG/PDF output #535

Closed
artemp opened this issue Oct 11, 2011 · 3 comments
Closed

Embedded/Editable Fonts in SVG/PDF output #535

artemp opened this issue Oct 11, 2011 · 3 comments

Comments

@artemp
Copy link
Member

artemp commented Oct 11, 2011

Mapnik currently supports SVG/PDF/PS output through the Cairo rendering backend.

Cairo's pdf surface supports embedding true fonts in the output, but the svg surface does not yet support this is included as glyphs (the characters get drawn as a bunch of vectors/lines).

Additionally, even with PDF output, text halos are not true fonts, and get vectorized like SVG.

This limitation is two part: 1) in the case of line placement mapnik passes each character separately to cairo, and 2) SVG output in Cairo is limited to glyphs: https://bugs.freedesktop.org/show_bug.cgi?id=38516. Frequently SVG and PDF are export from the OSM Export tab with the intention of later editing in Inkscape or Illustrator - to target paper/printed maps. Text labels that are true fonts, and can be selected as groups (rather than individual characters), is necessary to make further tweaking possible.

This ticket is meant to flag and explain this issue. Two solutions are possible:

  1. Patch the svg surface of Cairo (potential short term option):

http://cgit.freedesktop.org/cairo/tree/src/cairo-svg-surface.c

  1. Write a native SVG renderer for Mapnik (longer term plan, will also address layering, grouping, and pattern support issues)
@peepo
Copy link

peepo commented Jan 31, 2012

this does not prevent text being included as , but not rendered as such, which impacts discoverability.

@springmeyer
Copy link
Member

tracked at #1669

@springmeyer
Copy link
Member

er more at #2229

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

No branches or pull requests

3 participants