[Tilesathome] Bezier Curve Hinting broken
Dodi
dodi at moonbase.sk
Tue Oct 23 11:47:34 BST 2007
Area handling in modified version of osmarender.xsl:
<path id="area_9999" ... > is genereated into <defs> section of SVG for
every "way"
(dirty assumption that every way may be interperted as area)
in standard osmarender.xsl area path is generated just before <use > element
... so 1 area is shown 2 times in SVG
if SVG is not "cleaned up" (remove all unused/unreferenced <path> element) -
my approach breaks duplicate node detection in lines2curves.pl (
http://svn.moonbase.sk/FreemapSlovakiaDiSK/waycleanup.pl is a postprocessing
miniscript to remove unreferenced <path> elements from SVG... ) - ok it is
not a total solution (see bellow) but the result is a smaller SVG file
...ok ...for now I reverted this back in modified osmarender.xsl (
http://www.freemap.sk/osmarender6.zip )... areas are handled like in
standard osmarender.xsl
...but this problem with "duplicate nodes not curvified by lines2curves.pl"
still there because osmarender creates <path id="way_normal_9999" ... > for
every way but for ways like A<--B<--C .... creates also <path
id="way_reverse_9999" ... > which has same point but in reverse order...
this reverse_path is refereced by <textPath > to display streetnames in
corrent order...
unfortunately cleanup is not a sulution for this :S
conclusion: problem is in lines2curves.pl with duplicate node detection
feasible solution: aditional check for differently named bud identincal or
reverse paths in lines2curves.pl ..is there someone who can and want to do
it ? (I want but cannot :S)
Dodi
----- Original Message -----
From: "Brent Easton" <b.easton at exemail.com.au>
To: <tilesathome at openstreetmap.org>
Sent: Tuesday, October 23, 2007 5:33 AM
Subject: Re: [Tilesathome] Bezier Curve Hinting broken
> Ok,
>
> Double checked and hinting is fine for the standard osmarender.xsl, it is
> only broken for Dodi's new version.
>
> Regards,
> Brent.
>
>
> *********** REPLY SEPARATOR ***********
>
> On 23/10/2007 at 1:28 PM Brent Easton wrote:
>
>>Is it my imagination, or is not Bezier Curve Hinting taking place
>>anymore? I have tried both the current and Dodi's updated osmarender.xsl,
>>but it looks like only areas and not ways have had the hinting applied to
>>them.
>
> ____________________________________________________________
> Brent Easton
> Analyst/Programmer
> University of Western Sydney
> Email: b.easton at uws.edu.au
>
>
> _______________________________________________
> Tilesathome mailing list
> Tilesathome at openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/tilesathome
>
More information about the Tilesathome
mailing list