fixed font setup, added test script

This commit is contained in:
OSM
2016-08-10 09:17:01 +02:00
parent 7aca80bbb2
commit 3ccab6d65b
2 changed files with 8 additions and 6 deletions

6
scripts/listallFonts.py Executable file
View File

@ -0,0 +1,6 @@
#!/usr/bin/python
from mapnik import register_fonts, FontEngine
custom_fonts_dir = '/usr/share/fonts'
register_fonts(custom_fonts_dir)
for face in FontEngine.face_names(): print face