Draft Font type and implement Text::font

This commit is contained in:
Héctor Ramón Jiménez 2019-11-13 07:22:21 +01:00
parent f0b1e65ba4
commit 6857829dc3
10 changed files with 96 additions and 31 deletions

View file

@ -1,4 +1,4 @@
use iced_native::{text, Background, Color, Rectangle, Vector};
use iced_native::{text, Background, Color, Font, Rectangle, Vector};
#[derive(Debug, Clone)]
pub enum Primitive {
@ -11,6 +11,7 @@ pub enum Primitive {
bounds: Rectangle,
color: Color,
size: f32,
font: Font,
horizontal_alignment: text::HorizontalAlignment,
vertical_alignment: text::VerticalAlignment,
},