Constructs a new MeasurementUtils instance. Initializes the label cache and creates an off-screen holder group.
PrivateappStyle registry for resolving font styles.
PrivatefontFont manager for retrieving fonts.
Holder group for off-screen label measurement.
PrivatelabelCache of label instances, keyed by font or style key.
PrivatesimpleCache of SimpleLabel instances for measurement (keyed by font uri + size + origins).
PrivategetRetrieves a font object using the specified key.
The font key to look up.
The font object if found, otherwise undefined.
Measures text using a cached SimpleLabel, matching ISGNSimpleLabel layout.
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.
Measures the size of the given label using the specified renderer.
The renderer to use for text measurement.
The measured width and height of the text.
Measures the size of text using a SimpleLabel renderer’s current fields.
Utility class for measuring text size using cached labels and font management.