C

FontFiles.files

Description

The files property is a list of strings. Each element in the list is the path to a font file.

Note: The files property can be combined with the directory property in a FontFiles node.

Usage

This property is accepted in any context where its parent node is accepted. It takes a list of non-empty strings.

Code example:

FontFiles {
    files: ["assets/fonts/myfont.ttf"]
}

Since

This property was introduced in QmlProject API 1.3 .

See also FontFiles.directory.

Available under certain Qt licenses.
Find out more.