C

MCU.Config.glyphsCachePolicy

Configure copying of pre-rasterized glyph data to RAM for faster access.

Description

Sets the resource cache policy for glyphs.

The following is a list of possible values:

ValueResult
"OnStartup"The data is copied to RAM on startup. Although this enables faster access to data, it might use up limited RAM.
"NoCaching"The data is not copied to RAM. Drawing a glyph to the screen from storage may result in reduced performance.

The MCU.Config.glyphsRuntimeAllocationType property can be used to further configure which memory area is used for copying.

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

Note: The property affects both the Spark Monotype and Static font engines.

Usage

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

The available options are:

  • "OnStartup"
  • "NoCaching"
  • "OnDemand"

Code example:

MCU.Config {
    glyphsCachePolicy: "NoCaching"
}

Since

This property was introduced in QmlProject API 1.3 .

See also Text Rendering and Fonts, MCU.Config.glyphsRuntimeAllocationType, MCU.Config.glyphsStorageSection, and QUL_GLYPHS_RESOURCE_CACHE_POLICY.

Available under certain Qt licenses.
Find out more.