Qt 4.8
FontLoader Class Reference

The FontLoader element allows fonts to be loaded by name or URL. More...

Detailed Description

The FontLoader element allows fonts to be loaded by name or URL.

Since
4.7

The FontLoader element is used to load fonts by name or URL.

The status indicates when the font has been loaded, which is useful for fonts loaded from remote sources.

For example:

import QtQuick 1.0
Column {
FontLoader { id: fixedFont; name: "Courier" }
FontLoader { id: webFont; source: "http://www.mysite.com/myfont.ttf" }
Text { text: "Fixed-size font"; font.family: fixedFont.name }
Text { text: "Fancy font"; font.family: webFont.name }
}
See also
{declarative/text/fonts}{Fonts example}

The documentation for this class was generated from the following file: