C

QUL_FONT_FILES_COPY_TO_RAM

Copy the application's font files to RAM for faster access.

Description

Sets the default runtime storage for the application's font files.

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

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 your limited RAM.
"Never"The data is not copied to RAM. This may result in reduced performance.

The default value is "Never".

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

The CMake API maps to the following macros in the platform code:

ValueMacro
"OnStartup"QUL_STATIC_ASSET_SEGMENT
"OnDemand"QUL_STATIC_NO_PRELOAD_ASSET_SEGMENT
"Never"QUL_STATIC_NO_PRELOAD_ASSET_SEGMENT

These macros are platform-dependent. For example, asset preloading is not supported on some boards due to limited amount of RAM. Thus, the "OnDemand" mode is not supported on such boards. See the board-specific documentation pages for more information on asset handling.

The "OnDemand" mode is implemented by QUL_COPY_TO_RAM CMake API, but not by QUL_GLYPHS_COPY_TO_RAM and QUL_FONT_FILES_COPY_TO_RAM.

Example

set_target_properties(<Executable Target> PROPERTIES QUL_FONT_FILES_COPY_TO_RAM "Never")

Since

This property was introduced in Qt Quick Ultralite 1.8.

Available under certain Qt licenses.
Find out more.