C

QUL_FONT_VECTOR_OUTLINES_DRAWING

Warning: Using cmake target properties is deprecated since 2.4, consider using MCU.Config.fontVectorOutlinesDrawing 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

If this property is enabled, then vector outlines will be used to draw the text instead of alpha maps.

Note: This feature is currently considered experimental, and might change in a future release.

By default this property is disabled, and text is drawn using alpha maps.

Using vector outlines only works if the platform has support for path blending. Depending on the platform, using vector outlines could reduce CPU or memory usage.

On some platforms, text drawn using vector outlines might have some small visual differences from text drawn using alpha maps. Note that static text items will still use alpha maps and not vector outlines, as they get rasterized at compile time.

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

Example

set_target_properties(<Executable Target> PROPERTIES
    QUL_FONT_ENGINE "Spark"
    QUL_FONT_FILES <Monotype Spark Font File>
    QUL_FONT_VECTOR_OUTLINES_DRAWING YES
)

Available under certain Qt licenses.
Find out more.