Draft glyphon implementation of text pipeline for iced_wgpu
This commit is contained in:
parent
b9a9576207
commit
baf51a8fcf
8 changed files with 187 additions and 26 deletions
|
|
@ -1,4 +1,4 @@
|
|||
use crate::{alignment, Font, Rectangle};
|
||||
use crate::{alignment, Color, Font, Rectangle};
|
||||
|
||||
/// A paragraph of text.
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
|
|
@ -10,7 +10,7 @@ pub struct Text<'a> {
|
|||
pub bounds: Rectangle,
|
||||
|
||||
/// The color of the [`Text`], in __linear RGB_.
|
||||
pub color: [f32; 4],
|
||||
pub color: Color,
|
||||
|
||||
/// The size of the [`Text`].
|
||||
pub size: f32,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue