summaryrefslogtreecommitdiff
path: root/src/frame.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-09-19 17:44:40 +0200
committerLaurenz <laurmaedje@gmail.com>2022-09-19 17:44:40 +0200
commite29f55bb294cc298daad97accf6d8a76976b409c (patch)
treecc4db3b61fa23e13f781e992c63427d36e77ef8c /src/frame.rs
parent59f67b79c7ff50f0bc9a27373d0fa36d1523e08a (diff)
Remove font store
Diffstat (limited to 'src/frame.rs')
-rw-r--r--src/frame.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frame.rs b/src/frame.rs
index 7a5fb9e4..287bbf90 100644
--- a/src/frame.rs
+++ b/src/frame.rs
@@ -5,7 +5,7 @@ use std::num::NonZeroUsize;
use std::sync::Arc;
use crate::eval::{Dict, Value};
-use crate::font::FontId;
+use crate::font::Font;
use crate::geom::{
Align, Em, Length, Numeric, Paint, Point, Shape, Size, Spec, Transform,
};
@@ -353,7 +353,7 @@ impl Debug for Group {
#[derive(Clone, Eq, PartialEq)]
pub struct Text {
/// The font the glyphs are contained in.
- pub font_id: FontId,
+ pub font: Font,
/// The font size.
pub size: Length,
/// Glyph color.