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


By default, this property is ON to generate glyphs for all used characters in all the used font configurations. To reduce the memory footprint, set QUL_AUTO_GENERATE_GLYPHS OFF. In this case, fontcompiler will generate characters defined in font.unicodeCoverage only. For example:

readonly property font myFont1: Qt.font({ quality: Font.QualityVeryHigh })
readonly property font myFont2: Qt.font({ quality: Font.QualityVeryLow, unicodeCoverage: ["def"] })

Text {
    font: parent.myFont1
    text: "abc"
Text {
    font: parent.myFont2
    text: "def"

If QUL_AUTO_GENERATE_GLYPHS is set to OFF, then the "abc" characters in the earlier example are not rendered as the glyphs are not generated for that font configuration. The "def" characters are rendered as the font.unicodeCoverage property of myFont2 has the correct character set.

Note: This property affects the Static font engine only.

Note: QUL_AUTO_GENERATE_GLYPHS does not affect StaticText element.


set_target_properties(<Executable Target> PROPERTIES QUL_AUTO_GENERATE_GLYPHS "<ON/OFF>")

See also font.unicodeCoverage and static font engine.

Available under certain Qt licenses.
Find out more.