Bernd Wurst commited on 2008-04-15 10:27:48
Zeige 1 geänderte Dateien mit 4 Einfügungen und 6 Löschungen.
| ... | ... |
@@ -14,8 +14,6 @@ from reportlab.pdfbase.ttfonts import TTFont, TTFontFace, TTFontFile, TTFOpenFil |
| 14 | 14 |
from reportlab.pdfbase import pdfmetrics |
| 15 | 15 |
from reportlab.pdfgen import canvas as Canvas |
| 16 | 16 |
|
| 17 |
-fontpath_vera = '/usr/share/fonts/ttf-bitstream-vera/' |
|
| 18 |
- |
|
| 19 | 17 |
|
| 20 | 18 |
def _formatPrice(price, symbol='€'): |
| 21 | 19 |
'''_formatPrice(price, symbol='€'): |
| ... | ... |
@@ -41,10 +39,10 @@ def _niceCount(value): |
| 41 | 39 |
|
| 42 | 40 |
|
| 43 | 41 |
def _registerFonts(): |
| 44 |
- pdfmetrics.registerFont(TTFont("Vera", fontpath_vera + "Vera.ttf"))
|
|
| 45 |
- pdfmetrics.registerFont(TTFont("Vera-Bold", fontpath_vera + "VeraBd.ttf"))
|
|
| 46 |
- pdfmetrics.registerFont(TTFont("Vera-Oblique", fontpath_vera + "VeraIt.ttf"))
|
|
| 47 |
- pdfmetrics.registerFont(TTFont("Vera-BoldOblique", fontpath_vera + "VeraBI.ttf"))
|
|
| 42 |
+ pdfmetrics.registerFont(TTFont("Vera", "Vera.ttf"))
|
|
| 43 |
+ pdfmetrics.registerFont(TTFont("Vera-Bold", "VeraBd.ttf"))
|
|
| 44 |
+ pdfmetrics.registerFont(TTFont("Vera-Oblique", "VeraIt.ttf"))
|
|
| 45 |
+ pdfmetrics.registerFont(TTFont("Vera-BoldOblique", "VeraBI.ttf"))
|
|
| 48 | 46 |
|
| 49 | 47 |
|
| 50 | 48 |
|
| 51 | 49 |