Hello Jamie,
On Aug 27, 2009, at 9:11 AM, Jamie Robertson wrote:
Dane- the svg output renders fine in firefox, inkscape, or as a
pdf. I should have checked those first.. So, it's definitely a
font issue in Illustrator.
No worries. I don't have a copy of Illustrator, so its good to know
about this issue.
The weird thing is that even when i copy all of the DejaVu fonts
that mapnik uses into the windows fonts directory, and Illustrator
loads them (I can use all of the fonts as a regular text element),
Illustrator still won't use them when I import the svg from
nik2img. Any ideas on why it might not be picking those fonts up?
(same issue in Illustrator on a mac)
No idea. Can you render a map using some more standard system fonts
and see if the resulting svg works in Illustrator? If it did that
would prove you've still got some underlying problems getting
Illustrator to recognize the dejavu ones.
I'd recommend sending a mail to the Cairo users list perhaps - you
might get more experts eyes on the problem that way.
Also, when importing the svg to illustrator, I get an error that
says "The following items could not be imported properly" and
"clipping will be lost on roundtrip to Tiny". It then imports the
svg, and everything looks fine except for the text.
Okay. There is a cool fellow in the OSM community that has been
working with taking Mapnik output into Illustrator and he's listed a
bunch of problems at the bottom of http://wiki.openstreetmap.org/wiki/User_talk:Nicolasmarichal
That one is not listed, but I bet he's seen it or knows more about it.
A quick search on this error tells me that "The graphic you are
working with contains a clipping mask. The alert is simply telling
you that the clipping mask will not survive the trip back to SVG
Tiny" However, i think the text fill/font issue is unrelated
because to this error because i get it even when i create an svg of
the map without any text labels.
Okay. Good luck!
My hunch is that some for some of these issues there may be
workarounds inside the Cairo API (for creating more compliant SVG for
various editors) - just a matter of understanding and finding them. No
small task but a good start may be getting some mapnik output in front
of the eyes of some Cairo devs to get a sense of potential gochas -
This has been on my list but I'm not likely to get to it for several
months.
Dane
On Fri, Aug 14, 2009 at 1:29 PM, Dane Springmeyer
<[email protected]> wrote:
Wow, never seen that before.
Jamie, do you get this when rendering to PDF as well or when you
view the SVG output in some other application like Firefox or
Inkscape?
Can you post your relevant XML as well?
Dane
On Aug 14, 2009, at 10:20 AM, Jamie Robertson wrote:
Hi all- I'm having an issue with .svg export in Nik2img. The ouput
svg is really nice, except for text labels. The halos for the text
(white on the attached jpg) are placed, sized, and rendered
correctly. But the text fills (black) are enormous (take up a the
entire exported area and then some) and stacked upon each other.
Notice the letter "V" which is selected in Illustrator on the
attached jpg. When i output this same xml file to .png, everything
renders correctly, including the text fills. Any ideas?
Thanks,
Jamie Robertson
<
nik2img_text_fill_issue
.jpg>_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users