more test stuff

This commit is contained in:
2025-08-28 01:52:00 -04:00
parent 28935e33e9
commit d7d67e4ed3
3 changed files with 17 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
use cosmic_text::Metrics;
use cosmic_text::{Family, Metrics};
use crate::prelude::*;
@@ -18,6 +18,10 @@ impl Text {
self.attrs.color = color;
self
}
pub fn family(mut self, family: Family<'static>) -> Self {
self.attrs.family = family;
self
}
pub fn line_height(mut self, height: f32) -> Self {
self.attrs.line_height = height;
self