![]() |
Home · All Classes · All Functions · Overviews |
This item allows using fonts by name or url. More...
Example:
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 }
name : string |
This property holds the name of the font family. It is set automatically when a font is loaded using the url property.
Use this to set the font.family property of a Text item.
Example:
FontLoader { id: webFont; source: "http://www.mysite.com/myfont.ttf" } Text { text: "Fancy font"; font.family: webFont.name }
source : url |
The url of the font to load.
This property holds the status of font loading. It can be one of:
Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt 4.7.0 |