Fix diacritics in Sahana PDF exports, closes #8

This commit is contained in:
Disassembler 2019-04-13 20:49:19 +02:00
parent 71fb5a7ca3
commit 13153d341b
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499
3 changed files with 4 additions and 4 deletions

View File

@ -36,8 +36,8 @@ RUN EOF
pip install -r /srv/web2py/applications/eden/optional_requirements.txt
# Copy fonts with Czech glyphs
cp /usr/share/fonts/ttf-dejavu/DejaVuSerif-Bold.ttf /srv/web2py/applications/eden/static/fonts/DejaVuSerif-Bold.ttf
cp /usr/share/fonts/ttf-dejavu/DejaVuSerif.ttf /srv/web2py/applications/eden/static/fonts/DejaVuSerif.ttf
cp /usr/share/fonts/ttf-dejavu/DejaVuSerif-Bold.ttf /srv/web2py/applications/eden/static/fonts/Helvetica-Bold.ttf
cp /usr/share/fonts/ttf-dejavu/DejaVuSerif.ttf /srv/web2py/applications/eden/static/fonts/Helvetica.ttf
EOF
COPY lxc

View File

@ -171,7 +171,7 @@ def config(settings):
# Uncomment this to Translate Site Names
#settings.L10n.translate_org_site = True
# PDF font
settings.L10n.pdf_export_font = ['DejaVuSerif', 'DejaVuSerif-Bold']
settings.L10n.pdf_export_font = ['Helvetica', 'Helvetica-Bold']
# Finance settings
settings.fin.currencies = {

View File

@ -114,7 +114,7 @@ def config(settings):
settings.L10n.time_format = "%H:%M:%S"
# PDF font
settings.L10n.pdf_export_font = ['DejaVuSerif', 'DejaVuSerif-Bold']
settings.L10n.pdf_export_font = ['Helvetica', 'Helvetica-Bold']
# -------------------------------------------------------------------------
# Messaging