From 13153d341b2a2d03e2adb1083d0ca75229943fed Mon Sep 17 00:00:00 2001 From: Disassembler Date: Sat, 13 Apr 2019 20:49:19 +0200 Subject: [PATCH] Fix diacritics in Sahana PDF exports, closes #8 --- sahana-shared/lxcfile | 4 ++-- sahana/install/srv/sahana/data/Spotter/config.py | 2 +- sambro/install/srv/sambro/data/SAMBRO/config.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sahana-shared/lxcfile b/sahana-shared/lxcfile index eb91192..712dd85 100644 --- a/sahana-shared/lxcfile +++ b/sahana-shared/lxcfile @@ -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 diff --git a/sahana/install/srv/sahana/data/Spotter/config.py b/sahana/install/srv/sahana/data/Spotter/config.py index e11969f..d952e3c 100644 --- a/sahana/install/srv/sahana/data/Spotter/config.py +++ b/sahana/install/srv/sahana/data/Spotter/config.py @@ -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 = { diff --git a/sambro/install/srv/sambro/data/SAMBRO/config.py b/sambro/install/srv/sambro/data/SAMBRO/config.py index 7510254..5e4103e 100644 --- a/sambro/install/srv/sambro/data/SAMBRO/config.py +++ b/sambro/install/srv/sambro/data/SAMBRO/config.py @@ -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