OEReduceFontSizeToFit
OEReduceFontSizeToFit(text: str, font: OEFont, minfontsize: int,
maxwidth: float) -> int
The OEReduceFontSizeToFit function
gradually reduces the font size until the specified string can be drawn
without exceeding the width limit.
- text
The string for which the font size is calculated.
- font
The OEFont object that defines the style of the depiction.
- minfontsize
The minimum font size that can be returned.
- maxwidth
The width that can not be exceeded when drawing the string.
See also
OEEstimateTextWidthfunctionOEFont class