C

QUL_FONT_CACHE_PREALLOC

Warning: Using cmake target properties is deprecated since 2.4, consider using MCU.Config.fontCachePrealloc instead.

Note: Board defaults can be set using QmlProject in the BoardDefaults.qmlprojectconfig files. See Defining default variables for the platform and QmlProject Manual.

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

Description

Controls preallocation of the cache buffer used by selected font engine. The default value is ON, which means preallocation is enabled.

Example

set_target_properties(<Executable Target> PROPERTIES
    QUL_FONT_ENGINE "Spark"
    QUL_FONT_FILES <Monotype Spark Font File>
    QUL_FONT_CACHE_SIZE <Size>
    QUL_FONT_CACHE_PREALLOC OFF
)

See also Text Rendering and Fonts and QUL_FONT_CACHE_SIZE.

Available under certain Qt licenses.
Find out more.