more test stuff
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user