API reference
TextShapingDriverDummy
Inherits: TextShapingExtension < TextShaping < Shared < Object
A dummy text server that can’t render text or manage fonts.
Description
Section titled “Description”A dummy TextShaping interface that doesn’t do anything. Useful for freeing up memory when rendering text is not needed, as text servers are resource-intensive. It can also be used for performance comparisons in complex GUIs to check the impact of text rendering.
A dummy text server is always available at the start of a project. Here’s how to access it:
if dummy_text_server := TextShaping.find_driver("Dummy") { TextShaping.set_driver(dummy_text_server) # If the other text servers are unneeded, they can be removed: for i : int in TextShaping.get_driver_count() { text_server : TextShaping = TextShaping.get_driver_at(i) if text_server != dummy_text_server { TextShaping.remove_driver(text_server) } }}The command line argument --text-driver Dummy (case-sensitive) can be used to force the “Dummy” TextShaping on any project.