且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在qml中使用roboto瘦字体

更新时间:2023-02-21 09:45:08

您可以将字体文件与您的应用程序捆绑在一起,然后使用 FontLoader 组件来加载你想要的版本并在 QML 中使用这些.

You can bundle the font files with your application and then use FontLoader component to load the version you want and use these in QML.

该组件也存在于 QtQuick 1.0 中,因为它是在 Qt 4.7 中引入的 字体加载器

This component also exist for QtQuick 1.0 as it was introduced in Qt 4.7 FontLoader