I'm using Python and reportlab to generate PDFs. I would like to switch from the font CourierCondensed to Courier scaled by 90 %. However, I would like to scale the font width only, while keeping the font height the same.
This is how my paragraph style looks like:
scale_factor = 1.0
my_style= ParagraphStyle(
name=font_name,
parent=my_parent,
fontName=font_name_string,
fontSize=font_size*scale_factor,
leading=font_size)
This is the output if I use CourierCondensed:
This is the output if I use Courier scaled by 90 % (i.e. if the scale_factor is set to 0.9):
One can note that the second image shows a text with much smaller margins. Hence, I would like to keep the initial height of the font to avoid a very large change of the margins.
Any help or pointers would be highly appreciated.