FontEngine.instance() not required

Richard Fairhurst 2018-06-11 17:15:49 +01:00
parent b5930c0a76
commit 30d7d68d17

@ -58,7 +58,7 @@ nodejs -e "var mapnik = require('mapnik');mapnik.register_default_fonts();mapnik
* Ask Mapnik to print all registered face names (*note*: this only will show fonts already auto-registered in the `fontscollectionpath`): * Ask Mapnik to print all registered face names (*note*: this only will show fonts already auto-registered in the `fontscollectionpath`):
```sh ```sh
python -c "from mapnik import FontEngine as e;print '\n'.join(e.instance().face_names())" python -c "from mapnik import FontEngine as e;print '\n'.join(e.face_names())"
DejaVu Sans Bold DejaVu Sans Bold
DejaVu Sans Bold Oblique DejaVu Sans Bold Oblique
DejaVu Sans Book DejaVu Sans Book