fpdf.set_stretching(stretching: float)
Sets horizontal font stretching. By default, if this method is not called, no stretching is set (equivalent to a value of 100).
Since 1.7.3
stretching:
Define horizontal stretching (scaling) in percents.
# Arial regular 14
pdf.set_font('Arial')
# Set stretching to 50%, narrow text
pdf.set_stretching(50.0)