matthiask / plata

Plata - the lean and mean Django-based Shop
https://plata-django-shop.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
197 stars 63 forks source link

Custom font #76

Closed flaiming closed 8 years ago

flaiming commented 8 years ago

I had a problem with rendeging some czech characters in PDF invoices. I figured that it's caused by font that doesn't support some czech letters (default of reportlab - Helvetica). I think that best solution would be to let package user choose which font should be used. So I added option for that. You can just add for example PLATA_CUSTOM_PDF_FONT_NAME = 'DejaVuSans', no need to fill all new setting variables. I also updated docs, but it may need some polishing.