C
MCU.Config.fontFilesCachePolicy
Configure copying of the application's font files to RAM for faster access.
Description
Sets the resource cache policy for the application's font files.
The following is a list of possible values:
Value | Result |
---|---|
"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. This may result in reduced performance. |
The default value is "NoCaching"
.
The MCU.Config.fontFilesRuntimeAllocationType property can be used to further configure which memory area is used for copying.
See Text Rendering and Fonts for font engine-specific details.
Usage
This property is accepted in the main application .qmlproject
file. It takes a string, and the default value is "OnStartup"
.
The available options are:
"OnStartup"
"NoCaching"
Note: The property affects the Monotype Spark font engine only.
Code example:
MCU.Config { fontFilesCachePolicy: "OnStartup" }
Since
This property was introduced in QmlProject API 1.3 .
See also QUL_FONT_FILES_RESOURCE_CACHE_POLICY.
Available under certain Qt licenses.
Find out more.