[OSM-dev] adding fonts to OSM

Gurpinder Chahal chahalgurpinder95 at gmail.com
Fri Jun 21 05:03:39 UTC 2013


On Thu, Jun 20, 2013 at 5:59 PM, Satoshi IIDA <nyampire at gmail.com> wrote:
>
> Hmm.
> Did you clear cache files?
>
> /var/lib/mod_tile/default/*
>
>
>
>
>
> 2013/6/20 Gurpinder Chahal <chahalgurpinder95 at gmail.com>
>>
>> On Thu, Jun 20, 2013 at 12:15 PM, Satoshi IIDA <nyampire at gmail.com> wrote:
>> >
>> > Is any message log from renderd?
>> >
>> > I suppose that manual run.
>> >
>> > $ renderd -f
>> >
>> > If some error occurs, messages would be shown.
>> >
>> >
>> >
>> >
>> >
>> > 2013/6/20 Gurpinder Chahal <chahalgurpinder95 at gmail.com>
>> >>
>> >> On Tue, Jun 18, 2013 at 1:41 AM, Kai Krueger <kakrueger at gmail.com>
>> >> wrote:
>> >> > It probably depends on what program you use to drive the mapnik
>> >> > library.
>> >> > If
>> >> > you are using renderd, then you need to make sure the font settings
>> >> > are
>> >> > correct in your renderd.conf
>> >> >
>> >> > Particularly, you want to make sure that the font_dir line in
>> >> > renderd.conf (
>> >> >
>> >> > https://github.com/openstreetmap/mod_tile/blob/master/renderd.conf#L23 )
>> >> > is
>> >> > set correctly to include the path to the fonts you want to use and
>> >> > that
>> >> > font_dir_recurse is set to true / 1.
>> >>
>> >>
>> >> Thank You Kai Krueger for help.
>> >> Here is font_dir line in my renderd.conf :
>> >> font_dir=/usr/share/fonts/
>> >> truetype/ttf-punjabi-fonts/lohit_pa.ttf
>> >>
>> >> I made few changes in fontset-settings.xml.inc.template, osm.xml.
>> >> But still I got no change on my localhost.
>> >>
>> >> --
>> >> Gurpinder Kaur Chahal
>> >> Blog: http://chahalgurpinder95.wordpress.com/
>> >>
>> >> _______________________________________________
>> >> dev mailing list
>> >> dev at openstreetmap.org
>> >> http://lists.openstreetmap.org/listinfo/dev
>> >
>> >
>> >
>> >
>> > --
>> > Satoshi IIDA
>> > mail: nyampire at gmail.com
>> > twitter: @nyampire
>>
>>
>> I got no error there.
>> After running $ renderd -f,it gave message
>>
>> .................................................................................
>>
>> renderd[30997]: Rendering daemon started
>> renderd[30997]: Parsing section renderd
>> renderd[30997]: Parsing render section 0
>> renderd[30997]: Parsing section mapnik
>> renderd[30997]: Parsing section default
>> renderd[30997]: config renderd: unix
>> socketname=/var/run/renderd/renderd.sock
>> renderd[30997]: config renderd: num_threads=4
>> renderd[30997]: config renderd: num_slaves=0
>> renderd[30997]: config renderd: tile_dir=/var/lib/mod_tile
>> renderd[30997]: config renderd: stats_file=/var/run/renderd/renderd.stats
>> renderd[30997]: config mapnik:  plugins_dir=/usr/lib/mapnik/2.0/input
>> renderd[30997]: config mapnik:
>> font_dir=/usr/share/fonts/truetype/ttf-punjabi-fonts
>> renderd[30997]: config mapnik:  font_dir_recurse=1
>> renderd[30997]: config renderd(0): Active
>> renderd[30997]: config renderd(0): unix
>> socketname=/var/run/renderd/renderd.sock
>> renderd[30997]: config renderd(0): num_threads=4
>> renderd[30997]: config renderd(0): tile_dir=/var/lib/mod_tile
>> renderd[30997]: config renderd(0):
>> stats_file=/var/run/renderd/renderd.stats
>> renderd[30997]: config map 0:   name(default)
>> file(/etc/mapnik-osm-data/osm.xml) uri(/osm/) htcp() host()
>> renderd[30997]: Initialising unix server socket on
>> /var/run/renderd/renderd.sock
>> renderd[30997]: Created server socket 5
>> renderd[30997]: Renderd is using mapnik version 2.0.0
>> renderd[30997]: DEBUG: Loading font:
>> /usr/share/fonts/truetype/ttf-punjabi-fonts/Saab.ttf
>> renderd[30997]: DEBUG: Loading font:
>> /usr/share/fonts/truetype/ttf-punjabi-fonts/lohit_pa.ttf
>> Running in foreground mode...
>> renderd[30997]: Starting stats thread
>>
>> .....................................................................................................................................
>>
>> I think I'm missing something. I'm unable to change my fonts.
>> --
>> Gurpinder Kaur Chahal
>> Blog: http://chahalgurpinder95.wordpress.com/
>
>
>
>
> --
> Satoshi IIDA
> mail: nyampire at gmail.com
> twitter: @nyampire

Thank You for repliyng.
Do you mean I need to generate tiles again to change my fonts?
Because clearing cache files will delete my tiles.

--
Gurpinder Kaur Chahal
Blog: http://chahalgurpinder95.wordpress.com/



More information about the dev mailing list