drawme 0.0.0

Static 2d rendering engine skia alternative
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::borrow::Cow;
mod builder;
pub use builder::*;

pub mod font;

pub struct Text<'a> {
    inner: Cow<'a, str>,
}

impl<'a> Text<'a> {
    pub fn builder<'b>() -> TextBuilder<'b> {
        TextBuilder::default()
    }
    pub fn new(text: impl Into<Cow<'a, str>>) -> Self {
        Self { inner: text.into() }
    }
}