C

MCU.Config.glyphsRuntimeAllocationType

Configure the runtime allocation type used when copying pre-rasterized glyph data to RAM.

Description

If MCU.Config.glyphsCachePolicy is set to "OnStartup", then the runtime allocation type specifies which memory area is used when copying the glyph data.

For example, a platform might have SRAM, VRAM and SDRAM memory areas. The runtime allocation type specifies which one to use. The values correspond to the Qul::PlatformInterface::MemoryAllocator::AllocationType enum, but will typically be using the enum values Custom, Custom + 1, and so on in a platform-specific way.

If not set, the default value is 3 (DefaultPreload).

The accepted values are defined in AllocationType.

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

This controls StaticText data and static font engine precomputed data.

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 3.

Code example:

MCU.Config {
    glyphsRuntimeAllocationType: 2
}

Since

This property was introduced in QmlProject API 1.3 .

See also Text Rendering and Fonts, MCU.Config.glyphsStorageSection, MCU.Config.glyphsCachePolicy, and QUL_GLYPHS_RESOURCE_RUNTIME_ALLOCATION_TYPE.

Available under certain Qt licenses.
Find out more.