fpdf.set_stretching(stretching: float = 100.0)
Sets horizontal font stretching.
Since 1.7.3
stretching:
Define horizontal stretching (scaling) in percents. Default value 100 (i.e. no stretching).
# Arial regular 14
pdf.set_font('Arial')
# Set stretching to 50%, narrow text
pdf.set_stretching(50.0)