PDF: Fix another crash if unknown font is used

see also PRETIXEU-7K4
This commit is contained in:
Raphael Michel
2022-11-07 09:33:44 +01:00
parent 23f9fb4a9a
commit dc5a85b39e

View File

@@ -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,