C

MCU.Config.fontHeapSize

Defines a maximum heap size for the font engine.

Description

The maximum amount of RAM (in bytes) that the font engine will use for its heap.

Since Qt Quick Ultralite 1.9, the heap buffer is preallocated by default, if a specific size is requested by MCU.Config.fontHeapSize

The default value is -1, which means that the heap usage is not restricted and therefore no buffer is preallocated in this case.

See MCU.Config.fontHeapPrealloc for instructions on how to disable preallocation.

See Text Rendering and Fonts for font engine-specific details.

Usage

This property is accepted in the main application .qmlproject file, or BoardDefaults.qmlprojectconfig for the target platform. It takes an integer, and the default value is -1.

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

Code example:

MCU.Config {
    fontHeapSize: 12800
}

Since

This property was introduced in QmlProject API 1.3 .

See also QUL_FONT_HEAP_SIZE.

Available under certain Qt licenses.
Find out more.