現在、ドキュメント、チュートリアルを試しましたが、QFontDataBase を使用してアプリに追加しようとしても、実装がないように見えますが、インスタンス化しようとするとクラッシュします。
私は Webviews で運が良かったのですが、アプリで必要なものではありません。
私が最後に行ったのは、ラベル内にhtmlコンテンツを書き込もうとしたことですが、まだうまくいきません:
Label *label = new Label();
label->setText("<html> <head> <style>@font-face { font-family: 'AmaticSCRegular'; src: url('local:///assets/fonts/amaticsc-regular.eot'); src: url('local:///assets/fonts/amaticsc-regular.eot') format('embedded-opentype'), url('local:///assets/fonts/amaticsc-regular.woff') format('woff'), url('local:///assets/fonts/amaticsc-regular.ttf') format('truetype'), url('local:///assets/fonts/amaticsc-regular.svg#AmaticSCRegular') format('svg'); font-weight: normal; font-style: normal; } body {font-family: 'AmaticSCRegular'; font-size: 3em; color:#777777; text-align: center;}</style></head><body>Center + Crop</body></html>");
font-family を除いて、すべてが機能します。
フォント ファイルは、プロジェクトの assets/fonts フォルダーにあります。
QML コードは、Blackberry 10 Cascade ドキュメントの TextStyle と同じです。( http://developer.blackberry.com/native/documentation/cascades/ui/text/styles.html )
何か案が?