Controls the font cache buffer preallocation.


Controls preallocation of the cache buffer used by the selected font engine. The default value is true, which means preallocation is enabled.

Note: This property is relevant only for the Monotype Spark font engine.


This property is accepted in the main application .qmlproject file, or BoardDefaults.qmlprojectconfig for the target platform. It takes a boolean value, and the default value is true.

Note: The property affects the Monotype Spark font engine only.

Code example:

MCU.Config {
    fontCachePrealloc: true


This property was introduced in QmlProject API 1.3 .

See also Text Rendering and Fonts and QUL_FONT_CACHE_PREALLOC.

Available under certain Qt licenses.
Find out more.