Constructs a new MeasurementUtils instance. Initializes the label cache and creates an off-screen holder group.
Private
fontFont manager for retrieving fonts.
Holder group for off-screen label measurement.
Private
labelCache of label instances, keyed by font or style key.
Private
styleStyle registry for resolving font styles.
Private
getRetrieves a font object using the specified key.
The font key to look up.
The font object if found, otherwise undefined.
Measures the size of the given text using the specified parameters. Uses cached labels and resolves fonts/styles as needed.
The parameters for text measurement.
The measured width and height of the text.
Utility class for measuring text size using cached labels and font management.