summaryrefslogtreecommitdiff
path: root/font/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'font/src/lib.rs')
-rw-r--r--font/src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/font/src/lib.rs b/font/src/lib.rs
index f23d0a0f..38a6f82f 100644
--- a/font/src/lib.rs
+++ b/font/src/lib.rs
@@ -213,6 +213,7 @@ impl ::std::ops::Add for Size {
}
}
+#[derive(Clone)]
pub struct RasterizedGlyph {
pub c: char,
pub width: i32,
@@ -314,6 +315,7 @@ impl fmt::Debug for RasterizedGlyph {
}
}
+#[derive(Copy, Clone)]
pub struct Metrics {
pub average_advance: f64,
pub line_height: f64,