TextGenerator.GetPreferredWidth
Parameters
| str | Generation text. | |
| settings | Settings for generation. |
Returns
float Preferred width.
Description 描述
Given a string and settings, returns the preferred width for a container that would hold this text.
| str | Generation text. | |
| settings | Settings for generation. |
float Preferred width.
Given a string and settings, returns the preferred width for a container that would hold this text.