ScaledWidthTextField
src.text_layers.ScaledWidthTextField
Bases: TextField
A TextField which automatically scales down its font size until the width of the layer is within the horizontal bound of a reference layer.
Source code in src\text_layers.py
244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 |
|
Attributes
font: str
reference_width: Union[float, int]
Union[float, int]: Width of the reference layer provided.