-
Hi, i was wondering if there is a way to load fonts at runtime. I tried figuring out a way for a few hours and ran into the limitation, that, as a far as i understand, i need access to the For context: I am trying to give an overview of fonts in a folder and their appearance and got the loading part in place and need a way to get them into the UI. Thanks for all the great work, this framework feels quite mature for still being in development! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Apologies for not getting back to you yesterday, I have family visiting. If you're just wanting to load the fonts at the start of the application, you can use To add fonts after the window has been opened hasn't been designed yet, but I definitely want to support that as well. Thanks for trying out Cushy! |
Beta Was this translation helpful? Give feedback.
-
Absolutely no apologies necessary :) My use case would be the latter, since the program in question would be a font manager and therefore add and remove source folders containing fonts. And happy to test Cushy! I have quite limited knowledge of Rust so far, but for not being a WebView-based UI-Framework this is quite accessible :) |
Beta Was this translation helpful? Give feedback.
Apologies for not getting back to you yesterday, I have family visiting.
If you're just wanting to load the fonts at the start of the application, you can use
MakeWidget::into_window()
to convert any widget into aWindow
, which you can add the fonts to.To add fonts after the window has been opened hasn't been designed yet, but I definitely want to support that as well.
Thanks for trying out Cushy!