oops. Meant to send this to dev as well as OP. On Sat, Sep 5, 2009 at 1:09 PM, Richard Weait<rich...@weait.com> wrote: > On Sat, Sep 5, 2009 at 11:21 AM, Radek Bartoň<black...@post.cz> wrote: >> Hello OSM developers. >> >> Since last "svn up" (maybe few more, I'm not sure), my instance of renderd is >> failing with message: >> >> terminate called after throwing an instance of 'mapnik::config_error' >> what(): Unable to find specified font face 'DejaVu Sans Book' >> >> Here is my renderd.conf: >> >> [mapnik] >> plugins_dir=/usr/lib/mapnik/input >> font_dir=/usr/share/fonts >> font_dir_recurse=1 >> >> And here is find /usr/share/fonts -name *DejaVu*: >> >> /usr/share/fonts/dejavu/DejaVuSerifCondensed-Italic.ttf >> /usr/share/fonts/dejavu/DejaVuSansMono.ttf >> /usr/share/fonts/dejavu/DejaVuSans.ttf >> /usr/share/fonts/dejavu/DejaVuSerif.ttf >> /usr/share/fonts/dejavu/DejaVuSerif-Italic.ttf >> /usr/share/fonts/dejavu/DejaVuSansCondensed-Bold.ttf >> /usr/share/fonts/dejavu/DejaVuSansMono-BoldOblique.ttf >> /usr/share/fonts/dejavu/DejaVuSerifCondensed.ttf >> /usr/share/fonts/dejavu/DejaVuSans-ExtraLight.ttf >> /usr/share/fonts/dejavu/DejaVuSansCondensed-BoldOblique.ttf >> /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf >> /usr/share/fonts/dejavu/DejaVuSerif-Bold.ttf >> /usr/share/fonts/dejavu/DejaVuSansCondensed.ttf >> /usr/share/fonts/dejavu/DejaVuSerifCondensed-BoldItalic.ttf >> /usr/share/fonts/dejavu/DejaVuSerif-BoldItalic.ttf >> /usr/share/fonts/dejavu/DejaVuSansMono-Oblique.ttf >> /usr/share/fonts/dejavu/DejaVuSerifCondensed-Bold.ttf >> /usr/share/fonts/dejavu/DejaVuSans-Oblique.ttf >> /usr/share/fonts/dejavu/DejaVuSans-BoldOblique.ttf >> /usr/share/fonts/dejavu/DejaVuSansCondensed-Oblique.ttf >> /usr/share/fonts/dejavu/DejaVuSansMono-Bold.ttf >> >> I would like to ask if this is a problem of missing font (I don't see any >> DejaVuSansBook.ttf) and in what package/version I can find this font or this >> font face shoud be already included in for example DejaVuSans.ttf file. >> >> Nevertheless, shouldn't renderd/mapnik find alternative font instead of >> crashing with an excepiton? >> >> Thank you for your help. > > The font names that python sees are not necessarily the same as the > file names. > > To check the fonts recognized by python, try > > python >>>> from mapnik import * >>>> for face in FontEngine.face_names(): print face > ... [Enter] > DejaVu Sans Bold > DejaVu Sans Bold Oblique > DejaVu Sans Book > ... > > Best regards, > Richard > http://weait.com/content/add-fonts-your-openstreetmap-server >
_______________________________________________ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev