forked from CGM_Public/pretix_original
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
|
except KeyError: # font not known, fall back
|
||||||
logger.warning(f'Use of unknown font "{font}"')
|
logger.warning(f'Use of unknown font "{font}"')
|
||||||
font = 'Open Sans'
|
font = 'Open Sans'
|
||||||
|
ad = getAscentDescent(font, float(o['fontsize']))
|
||||||
|
|
||||||
align_map = {
|
align_map = {
|
||||||
'left': TA_LEFT,
|
'left': TA_LEFT,
|
||||||
|
|||||||
Reference in New Issue
Block a user