Bernd Wurst commited on 2017-06-20 16:08:02
Zeige 1 geänderte Dateien mit 6 Einfügungen und 6 Löschungen.
... | ... |
@@ -5,11 +5,11 @@ def setup(): |
5 | 5 |
from reportlab.pdfbase.ttfonts import TTFont |
6 | 6 |
from reportlab.pdfbase import pdfmetrics |
7 | 7 |
|
8 |
- if 'Vera' not in pdfmetrics._fonts.keys(): |
|
9 |
- pdfmetrics.registerFont(TTFont("Vera", "Vera.ttf")) |
|
10 |
- pdfmetrics.registerFont(TTFont("Vera-Bold", "VeraBd.ttf")) |
|
11 |
- pdfmetrics.registerFont(TTFont("Vera-Oblique", "VeraIt.ttf")) |
|
12 |
- pdfmetrics.registerFont(TTFont("Vera-BoldOblique", "VeraBI.ttf")) |
|
8 |
+ if 'DejaVuSans' not in pdfmetrics._fonts.keys(): |
|
9 |
+ pdfmetrics.registerFont(TTFont("DejaVuSans", "DejaVuSans.ttf")) |
|
10 |
+ pdfmetrics.registerFont(TTFont("DejaVuSans-Bold", "DejaVuSans-Bold.ttf")) |
|
11 |
+ pdfmetrics.registerFont(TTFont("DejaVuSans-Oblique", "DejaVuSans-Oblique.ttf")) |
|
12 |
+ pdfmetrics.registerFont(TTFont("DejaVuSans-BoldOblique", "DejaVuSans-BoldOblique.ttf")) |
|
13 | 13 |
|
14 | 14 |
return (cm, A4) |
15 | 15 |
|
... | ... |
@@ -17,7 +17,7 @@ def setup(): |
17 | 17 |
(cm, A4) = setup() |
18 | 18 |
|
19 | 19 |
(page_width, page_height) = A4 |
20 |
-font = 'Vera' |
|
20 |
+font = 'DejaVuSans' |
|
21 | 21 |
# Set default font size |
22 | 22 |
default_font_size = 8 |
23 | 23 |
|
24 | 24 |