FL.fake.FontInterpolator.FontInterpolator
- class FL.fake.FontInterpolator.FontInterpolator(font: Font)
Bases:
object- __init__(font: Font) None
Interpolate an instance of a MM font
- Parameters:
font (Font) – The source font, multiple or single master. If the font contains no axes, a 1:1 copy of the font will be returned.
Methods
__init__(font)Interpolate an instance of a MM font
interpolate(values[, family_name, style_name])Do the interpolation and return the interpolated font.
- interpolate(values: tuple[float, ...], family_name: str | None = None, style_name: str | None = None) None
Do the interpolation and return the interpolated font.
- Parameters:
values (tuple[float, ...]) – A tuple containing interpolation values for all MM axes defined in the MM font. The values refer to the axis mappings defined in Font._axis_mappings. If there are more values than axes, the additional values are silently ignored. Float values are truncated to int.
tgt_font (Font) – The target font.