summaryrefslogtreecommitdiff
path: root/src/layout/text.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout/text.rs')
-rw-r--r--src/layout/text.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/layout/text.rs b/src/layout/text.rs
index 6b512a07..c6fa45d1 100644
--- a/src/layout/text.rs
+++ b/src/layout/text.rs
@@ -14,6 +14,7 @@ use super::*;
/// Performs the text layouting.
+#[derive(Debug)]
struct TextLayouter<'a> {
ctx: TextContext<'a>,
text: &'a str,
@@ -24,7 +25,7 @@ struct TextLayouter<'a> {
}
/// The context for text layouting.
-#[derive(Copy, Clone)]
+#[derive(Debug, Copy, Clone)]
pub struct TextContext<'a> {
/// The font loader to retrieve fonts from when typesetting text
/// using [`layout_text`].