C

FontFiles.directory

Description

The font files in the given directory are added to the project. Subdirectories are ignored. If the font files are spread across different directories, several FontFiles nodes are needed, one for each directory or subdirectory that is intended to be added.

The accepted extensions for font files are ttf , ttc , pfa , pfb and otf .

Note: The directory property can be combined with the files property in a FontFiles node. This property might be removed from future releases. Prefer explicit inclusion of files using the files property.

Usage

FontFiles {
    directory: "libs/fonts"
}

Since

This property was introduced in QmlProject API 1.3 .

See also FontFiles.files.

Available under certain Qt licenses.
Find out more.