font browser
Implement view_rounded_quads on TypefaceApp to support rendering rounded corners from config
src/main.rs | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/main.rs b/src/main.rs
index 75d338e..80ed6da 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -467,6 +467,10 @@ impl Application for TypefaceApp {
Some(&self.ui_context)
}
+ fn view_rounded_quads(&mut self, quads: &mut Vec<(f32, f32, f32, f32, f32, [f32; 4], (bool, bool, bool, bool))>, _size: LogicalSize, _scale: f64) {
+ quads.extend(self.root_window.all_rounded_quads(&self.ui_context));
+ }
+
fn new(_qh: &QueueHandle<EngineState<Self>>, _sender: calloop::channel::Sender<Self::Message>) -> Self {
cce_ui::scale::set_scale_factor(1.0);
// Parse command line arguments