Fix diacritics in Sahana PDF exports, closes #8
This commit is contained in:
parent
71fb5a7ca3
commit
13153d341b
@ -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
|
||||
|
@ -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 = {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user