problème de fonts

Bonsoir,

je suis confronté à un souci, certaines écritures ne passent pas :

Chine:

Egypte:

j’ai édité le fichier de configuration des fonts :

/etc/mapnik-osm-data/inc/fontset-settings.xml.inc

<FontSet name="book-fonts">
  <Font face-name="DejaVu Sans Book" />
  <Font face-name="unifont Medium" />
</FontSet>
<FontSet name="bold-fonts">
  <Font face-name="DejaVu Sans Bold" />
  <Font face-name="unifont Medium" />
</FontSet>
<FontSet name="oblique-fonts">
  <Font face-name="DejaVu Sans Oblique" />
  <Font face-name="unifont Medium" />
</FontSet>

et j’ai relancé le renderd.

Malheureusement le problème n’a pas été corrigé

la vérification des fonts gérées est positive (unifont / déjaVu)

ls `python -c "import mapnik;print mapnik.fontscollectionpath"`
ttf-dejavu  unifont

et

Aug 27 17:56:57 localhost renderd[32348]: Rendering daemon started
Aug 27 17:56:57 localhost renderd[32348]: Parsing section renderd
Aug 27 17:56:57 localhost renderd[32348]: Parsing render section 0
Aug 27 17:56:57 localhost renderd[32348]: Parsing section mapnik
Aug 27 17:56:57 localhost renderd[32348]: Parsing section default
Aug 27 17:56:57 localhost renderd[32348]: config renderd: unix socketname=/var/run/renderd/renderd.sock
Aug 27 17:56:57 localhost renderd[32348]: config renderd: num_threads=4
Aug 27 17:56:57 localhost renderd[32348]: config renderd: num_slaves=0
Aug 27 17:56:57 localhost renderd[32348]: config renderd: tile_dir=/var/lib/mod_tile
Aug 27 17:56:57 localhost renderd[32348]: config renderd: stats_file=/var/run/renderd/renderd.stats
Aug 27 17:56:57 localhost renderd[32348]: config mapnik:  plugins_dir=/usr/lib/mapnik/2.0/input
Aug 27 17:56:57 localhost renderd[32348]: config mapnik:  font_dir=/usr/share/fonts/truetype/ttf-dejavu
Aug 27 17:56:57 localhost renderd[32348]: config mapnik:  font_dir_recurse=0
Aug 27 17:56:57 localhost renderd[32348]: config renderd(0): Active
Aug 27 17:56:57 localhost renderd[32348]: config renderd(0): unix socketname=/var/run/renderd/renderd.sock
Aug 27 17:56:57 localhost renderd[32348]: config renderd(0): num_threads=4
Aug 27 17:56:57 localhost renderd[32348]: config renderd(0): tile_dir=/var/lib/mod_tile
Aug 27 17:56:57 localhost renderd[32348]: config renderd(0): stats_file=/var/run/renderd/renderd.stats
Aug 27 17:56:57 localhost renderd[32348]: config map 0:   name(default) file(/etc/mapnik-osm-data/osm.xml) uri(/osm/) htcp() host(localhost)
Aug 27 17:56:57 localhost renderd[32348]: Initialising unix server socket on /var/run/renderd/renderd.sock
Aug 27 17:56:57 localhost renderd[32348]: Created server socket 5
Aug 27 17:56:57 localhost renderd[32348]: Renderd is using mapnik version 2.0.0
Aug 27 17:56:57 localhost renderd[32348]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-BoldOblique.ttf
Aug 27 17:56:57 localhost renderd[32348]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerifCondensed-BoldItalic.ttf
Aug 27 17:56:57 localhost renderd[32348]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf
Aug 27 17:56:57 localhost renderd[32348]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-Bold.ttf
Aug 27 17:56:57 localhost renderd[32348]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerifCondensed-Bold.ttf
Aug 27 17:56:57 localhost renderd[32348]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf
Aug 27 17:56:57 localhost renderd[32348]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Oblique.ttf
Aug 27 17:56:57 localhost renderd[32348]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-BoldOblique.ttf
Aug 27 17:56:57 localhost renderd[32348]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-Italic.ttf
Aug 27 17:56:57 localhost renderd[32348]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf
Aug 27 17:56:57 localhost renderd[32348]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Oblique.ttf
Aug 27 17:56:57 localhost renderd[32348]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-BoldOblique.ttf
Aug 27 17:56:57 localhost renderd[32348]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-Oblique.ttf
Aug 27 17:56:57 localhost renderd[32348]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-Bold.ttf
Aug 27 17:56:57 localhost renderd[32348]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerifCondensed-Italic.ttf
Aug 27 17:56:57 localhost renderd[32348]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed.ttf
Aug 27 17:56:57 localhost renderd[32348]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
Aug 27 17:56:57 localhost renderd[32348]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Bold.ttf
Aug 27 17:56:57 localhost renderd[32348]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-ExtraLight.ttf
Aug 27 17:56:57 localhost renderd[32348]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-BoldItalic.ttf
Aug 27 17:56:57 localhost renderd[32348]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerifCondensed.ttf
Aug 27 17:56:57 localhost renderd[32349]: Starting stats thread

Si quelqu’un a déja été confronté à ce souci et l’a résolu…

Je vous remercie pour votre aide.

Bonjour,
Pas de trop de piste, je me suis toujours limité à des rendus France métropolitaine.

Droits et contenu des /usr/share/fonts ?

Que donne la commande

python -c "from mapnik import FontEngine as e;print '\n'.join(e.instance().face_names())"

Bruno

Bonjour,

python -c “from mapnik import FontEngine as e;print ‘\n’.join(e.instance().face_names())”

DejaVu Sans Bold
DejaVu Sans Bold Oblique
DejaVu Sans Book
DejaVu Sans Condensed
DejaVu Sans Condensed Bold
DejaVu Sans Condensed Bold Oblique
DejaVu Sans Condensed Oblique
DejaVu Sans ExtraLight
DejaVu Sans Mono Bold
DejaVu Sans Mono Bold Oblique
DejaVu Sans Mono Book
DejaVu Sans Mono Oblique
DejaVu Sans Oblique
DejaVu Serif Bold
DejaVu Serif Bold Italic
DejaVu Serif Book
DejaVu Serif Condensed
DejaVu Serif Condensed Bold
DejaVu Serif Condensed Bold Italic
DejaVu Serif Condensed Italic
DejaVu Serif Italic
unifont Medium

Mapnik peut donc accéder aux fonts unifont.

Regarde ce fil où il est évoqué ton symptôme avec un pb d’encodage postgresql :
https://lists.openstreetmap.org/pipermail/dev/2010-November/020985.html

j’ai fait ce qui était demandé.

osm=# select name from planet_osm_point where place=‘Town’;

        name
--------------------
 Lugaga
 लाल्भीत्ती;Lalbhitti
 लाल्भीत्ती;Lalbhitti
 Bihpuria
(4 rows)

osm=# show client_encoding;

 client_encoding
-----------------
 UTF8
(1 row)

l’encodage du postgresql est bon !

j’ai purgé le cache au cas où ce serait du à un ancien paramétrage sans le unifont.
Malheureusement rien n’a changé