albertlauncher / albert

A fast and flexible keyboard launcher
https://albertlauncher.github.io
Other
7.26k stars 305 forks source link

Load Roboto-Thin.ttf from system prior to bundled font file #584

Closed hosiet closed 6 years ago

hosiet commented 6 years ago

Bundling a font file within plugin repository (https://github.com/albertlauncher/plugins/blob/master/qmlboxmodel/share/styles/BoxModel/fonts/Roboto-Thin.ttf) might not be ideal.

I'm wondering if there's a mechanism in QML to search system font library for same font before trying to load the font bundled. (Something equivalent to QFontDatabase in Qt?)

ManuelSchneid3r commented 6 years ago

might not be ideal.

Why not. Whats the point in using the system font if the bundled font is guaranteed to be there?

ManuelSchneid3r commented 6 years ago

I think this is not possible atm. Theres no qfontdatabase in QML atm and I dont want to handcraft it.