mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
PDF: Fix another crash if unknown font is used
see also PRETIXEU-7K4
This commit is contained in:
@@ -832,6 +832,7 @@ class Renderer:
|
||||
except KeyError: # font not known, fall back
|
||||
logger.warning(f'Use of unknown font "{font}"')
|
||||
font = 'Open Sans'
|
||||
ad = getAscentDescent(font, float(o['fontsize']))
|
||||
|
||||
align_map = {
|
||||
'left': TA_LEFT,
|
||||
|
||||
Reference in New Issue
Block a user