<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Vardhan</span></div><div>The problem here isn't Android ... it's server side, where Mapnik renders the tiles.</div><div>-Mkel</div><div> </div><div>* Mikel Maron * +14152835207 @mikel s:mikelmaron<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;"> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Vardhan Naik <vardhan.naik@dsrede.in><br> <b><span style="font-weight: bold;">To:</span></b> cartonama-workshop@googlegroups.com <br><b><span style="font-weight: bold;">Cc:</span></b>
"talk-in@openstreetmap.org" <talk-in@openstreetmap.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, March 16, 2012 12:20 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: Indic rendering<br> </font> </div> <br>
<div id="yiv1624586481">Hi Mikel.<div><br></div><div>I was able to replicate the issue as per sandbox in my machine.</div><div>http://mapnik-utils.googlecode.com/svn/sandbox/indic_fonts/ </div>
<div><br></div><div>Googled a bit and think this is an issue for Android .. though solved in ICS using a open type software called http://freedesktop.org/wiki/Software/HarfBuzz for rendering glyphs.</div>
<div><br></div><div>Interesting Links for Android.</div><div><a rel="nofollow" target="_blank" href="https://github.com/CyanogenMod/android_external_webkit/blob/ics/Source/WebCore/platform/graphics/android/FontAndroid.cpp">https://github.com/CyanogenMod/android_external_webkit/blob/ics/Source/WebCore/platform/graphics/android/FontAndroid.cpp</a> <br>
</div><div>http://androidandsandu.blogspot.com/2011/12/how-to-add-indian-languages-to-android.html <br></div><div><br></div>
<div><br></div><div>Regards</div><div>Vardhan</div><div><br><div class="yiv1624586481gmail_quote">On Thu, Mar 15, 2012 at 11:17 AM, Vardhan Naik <span dir="ltr"><<a rel="nofollow" ymailto="mailto:vardhan.naik@dsrede.in" target="_blank" href="mailto:vardhan.naik@dsrede.in">vardhan.naik@dsrede.in</a>></span> wrote:<br>
<blockquote class="yiv1624586481gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><a rel="nofollow" target="_blank" href="http://mapnik-utils.googlecode.com/svn/sandbox/indic_fonts/">http://mapnik-utils.googlecode.com/svn/sandbox/indic_fonts/</a> <div>
<br></div><div>one method to test the issue using python. will test and let you know if I make headway.<div><div class="yiv1624586481h5"><br>
<br><div class="yiv1624586481gmail_quote">On Thu, Mar 15, 2012 at 10:56 AM, Mikel Maron <span dir="ltr"><<a rel="nofollow" ymailto="mailto:mikel_maron@yahoo.com" target="_blank" href="mailto:mikel_maron@yahoo.com">mikel_maron@yahoo.com</a>></span> wrote:<br><blockquote class="yiv1624586481gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><div><span>Vardhan</span></div><div><span><br></span></div><div>Different issue from CJK characters.</div><div><br></div><div>"<span style="background-color: rgb(251, 251, 251); color: rgb(51, 51, 51); font-size: 13px; line-height: 20px; font-family: Helvetica, arial, freesans, clean, sans-serif; ">I believe the underlying issue here is that Mapnik is rendering the string one character at a time in order to make the characters follow along the path. These Indic languages use ligatures where the rendering depends on multi-character sequences and can not be correctly rendered one character at a time,"</span></div>
<div><span style="font-size:12pt;"><br></span></div><div><span style="font-size:12pt;"><a rel="nofollow" target="_blank" href="https://github.com/mapnik/mapnik/issues/112#issuecomment-2365351" style="font-size:12pt;">https://github.com/mapnik/mapnik/issues/112#issuecomment-2365351</a></span></div>
<div><span style="font-size:12pt;"><br></span></div><div><span style="font-size:12pt;">Mikel</span></div><div><span style="font-size:12pt;"> </span></div><div><div>* Mikel Maron * <a rel="nofollow">+14152835207</a> @mikel s:mikelmaron<br>
</div><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;margin-top:5px;padding-left:5px;"> <div style="font-size:12pt;"> <div style="font-size:12pt;">
<div dir="ltr"> <font face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Vardhan Naik <<a rel="nofollow" ymailto="mailto:vardhan.naik@dsrede.in" target="_blank" href="mailto:vardhan.naik@dsrede.in">vardhan.naik@dsrede.in</a>><br> <b><span style="font-weight:bold;">To:</span></b> <a rel="nofollow" ymailto="mailto:cartonama-workshop@googlegroups.com" target="_blank" href="mailto:cartonama-workshop@googlegroups.com">cartonama-workshop@googlegroups.com</a> <br>
<b><span style="font-weight:bold;">Cc:</span></b> "<a rel="nofollow" ymailto="mailto:talk-in@openstreetmap.org" target="_blank" href="mailto:talk-in@openstreetmap.org">talk-in@openstreetmap.org</a>"
<<a rel="nofollow" ymailto="mailto:talk-in@openstreetmap.org" target="_blank" href="mailto:talk-in@openstreetmap.org">talk-in@openstreetmap.org</a>> <br> <b><span style="font-weight:bold;">Sent:</span></b> Thursday, March 15, 2012 10:52 AM<br> <b><span style="font-weight:bold;">Subject:</span></b> Re: Indic rendering<br>
</font> </div><div><div> <br>
<div>Hi Mikel,<div><br></div><div>Am not a Map person.. but found this for chinese. is that we miss the ttf file or so? on the server?</div><div><br></div><div><h3 style="padding-top: 0.5em; width: auto; margin-bottom: 0.3em; padding-bottom: 0.17em; border-bottom-color: initial; border-bottom-style: none; margin-right: 0px; line-height: 19px; font-size: 17px; margin-left: 0px; margin-top: 0px; background-image: none; font-family: sans-serif; ">
<span>Optional: CJK font fallback support</span></h3><div style="line-height: 19px; margin-right: 0px; font-size: 13px; margin-left: 0px; margin-bottom: 0.5em; margin-top: 0.4em; font-family: sans-serif; ">
Currently, mapnik includes a font to support CJK characters (Chinese, Japanese, Korean, et. al. or more generally East Asia). To add support you need to open the file inc/fontset-settings.xml.inc and uncomment the lines that have "unifont Medium".</div>
<div style="line-height: 19px; margin-right: 0px; font-size: 13px; margin-left: 0px; margin-bottom: 0.5em; margin-top: 0.4em; font-family: sans-serif; ">Older mapnik versions did not have unifont included. There you need to:</div>
<ol style="padding-left: 0px; padding-right: 0px; padding-top: 0px; margin-right: 0px; line-height: 19px; font-size: 13px; margin-left: 3.2em; margin-bottom: 0px; margin-top: 0.3em; padding-bottom: 0px; font-family: sans-serif; ">
<li style="margin-bottom:0.1em;">Download the <a rel="nofollow" target="_blank" href="http://unifoundry.com/unifont.html" style="text-decoration:none;color:rgb(51,102,187);background-color:initial;padding-right:13px;background-repeat:no-repeat no-repeat;">GNU Unifont Glyphs</a></li>
<li style="margin-bottom:0.1em;">Unpack and put the ttf file in your /usr/local/lib/mapnik/fonts (or appropriate path) directory with the other Mapnik fonts.</li></ol><div><font face="sans-serif"><span style="line-height:19px;"><br>
</span></font></div><br><div>On Thu, Mar 15, 2012 at 7:59 AM, Mikel Maron <span dir="ltr"><<a rel="nofollow" ymailto="mailto:mikel_maron@yahoo.com" target="_blank" href="mailto:mikel_maron@yahoo.com">mikel_maron@yahoo.com</a>></span> wrote:<br><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div style="font-size:12pt;"><div>Hi</div><div><br></div><div>During the cartonama workshop, we discovered that Mapnik still has issues with rendering Indic fonts.</div>
<div><br></div><div>http://tiles.mapbox.com/groundtruth/map/map-busd5lm5<br></div><div><br></div><div>It's a known issue.</div><div><br>
</div><div><span><a rel="nofollow" target="_blank" href="https://github.com/mapnik/mapnik/issues/112">https://github.com/mapnik/mapnik/issues/112</a></span></div><div><br></div><div>Artem has looked into a bit, but hasn't proceeded that far. Anyone knowledgeable in handling Indic fonts that might be able to advise?</div>
<div><br></div><div>-Mikel</div><span><font color="#888888"><div> </div><div>* Mikel Maron * <a rel="nofollow">+14152835207</a> @mikel s:mikelmaron</div></font></span></div>
</div></blockquote></div><br><br clear="all"><div><br></div>-- <br><span style="font-family: tahoma, sans-serif; ">Best Regards,</span><br style="font-family: tahoma, sans-serif; "><span style="font-family: tahoma, sans-serif; "><b><span style="font-size:9.0pt;color:#1f497d;">Vardhan Naik</span></b><span style="font-size:9.0pt;color:#1f497d;"> | <b>Didactics Software Rede Pvt. Ltd.</b> | <b>w.</b> <a rel="nofollow">+91.80.26635445</a> | <b>m.</b> <a rel="nofollow">+91.9980073544</a>| </span><span style="color:#1f497d;"><span style="color:blue;"><a rel="nofollow" ymailto="mailto:vardhan.naik@dsrede.in" target="_blank" href="mailto:vardhan.naik@dsrede.in">vardhan.naik@dsrede.in</a></span></span></span><br>
<div><br></div><br>
</div>
</div><br><br> </div></div></div> </div> </blockquote></div> </div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><span style="font-family: tahoma, sans-serif; ">Best Regards,</span><br style="font-family: tahoma, sans-serif; ">
<span style="font-family: tahoma, sans-serif; "><b><span style="font-size:9.0pt;color:#1f497d;">Vardhan Naik</span></b><span style="font-size:9.0pt;color:#1f497d;"> | <b>Didactics Software Rede Pvt. Ltd.</b> | <b>w.</b> <a rel="nofollow">+91.80.26635445</a> | <b>m.</b> <a rel="nofollow">+91.9980073544</a>| </span><span style="color:#1f497d;"><span style="color:blue;"><a rel="nofollow" ymailto="mailto:vardhan.naik@dsrede.in" target="_blank" href="mailto:vardhan.naik@dsrede.in">vardhan.naik@dsrede.in</a></span></span></span><br>
<div><br></div><br>
</div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><span style="font-family: tahoma, sans-serif; ">Best Regards,</span><br style="font-family: tahoma, sans-serif; "><span style="font-family: tahoma, sans-serif; "><b><span style="font-size:9.0pt;color:#1f497d;">Vardhan Naik</span></b><span style="font-size:9.0pt;color:#1f497d;"> | <b>Didactics Software Rede Pvt. Ltd.</b> | <b>w.</b> +91.80.26635445 | <b>m.</b> +91.9980073544| </span><span style="color:#1f497d;"><span style="color:blue;"><a rel="nofollow" ymailto="mailto:vardhan.naik@dsrede.in" target="_blank" href="mailto:vardhan.naik@dsrede.in">vardhan.naik@dsrede.in</a></span></span></span><br>
<div><br></div><br>
</div>
</div><br><br> </div> </div> </blockquote></div> </div></body></html>