anilgulecha/trelby — comment on commit 4c13588c576fb13022811265c7a6da31e72040bc
File: src/pdf.py line 48
By oskusalerma:

Don't do the lookup from TRANSFORM_MATRIX twice. Do it like this:

if pmlOp.angle is None:
do normal text output
else:
matrix = TRANSFORM_MATRIX.get(pmlOp.angle)

if matrix:
output += .... matrix[0], matrix[1], ..
else:
# unsupported angle, do nothing
pass