public float GetPreferredWidth (string str, TextGenerationSettings settings);

Parameters

strGeneration text.
settingsSettings for generation.

Returns

float Preferred width.

Description

Given a string and settings, returns the preferred width for a container that would hold this text.