Move built-in fonts to iced_graphics

This commit is contained in:
Héctor Ramón Jiménez 2020-05-19 20:30:46 +02:00
parent e0c4f1a08e
commit f0480854a9
12 changed files with 26 additions and 29 deletions

View file

@ -3,6 +3,7 @@ use crate::text;
use crate::triangle;
use crate::{Quad, Settings, Target, Transformation};
use iced_graphics::backend;
use iced_graphics::font;
use iced_graphics::Primitive;
use iced_native::mouse;
use iced_native::{Background, Font, Point, Rectangle, Size, Vector};
@ -456,8 +457,8 @@ impl iced_graphics::Backend for Backend {
}
impl backend::Text for Backend {
const ICON_FONT: Font = text::BUILTIN_ICONS;
const CHECKMARK_ICON: char = text::CHECKMARK_ICON;
const ICON_FONT: Font = font::ICONS;
const CHECKMARK_ICON: char = font::CHECKMARK_ICON;
fn measure(
&self,