migurski / Dymo

Map label placer with simulated annealing.
149 stars 17 forks source link

add fallback to default font #26

Open nvkelso opened 12 years ago

nvkelso commented 12 years ago

Dymo ships with DejaVuSans.ttf true type font.

When a font isn't specified or fails to load, dymo-prepare-places and or dymo-label should use those fonts:

This code block might be helpful?

for ttf in glob.glob(os.path.dirname(os.path.realpath(file)) + '/fonts/*.ttf'):