Warning: Using cmake target properties is deprecated since 2.4, consider using MCU.Config.fontCacheSize 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.
The maximum amount of RAM (in bytes) that selected font engine will use for its cache. The default value is 200 kb. To disable the cache, set the value to 1.
Since Qt Quick Ultralite 1.9, the cache buffer is preallocated by default. See QUL_FONT_CACHE_PREALLOC for instructions on how to disable preallocation.
See Text Rendering and Fonts for font engine-specific details.
set_target_properties(<Executable Target> PROPERTIES QUL_FONT_ENGINE "Spark" QUL_FONT_FILES <Monotype Spark Font File> QUL_FONT_CACHE_SIZE <Size> )
The font engine cache size used by the application can be seen by looking at the performance logs.
Refer to the font engine cache part of the Resource cache documentation for tips on how to choose an appropriate cache size.
Available under certain Qt licenses.
Find out more.