From 40ff45f96b6e043244fb0db893fdf6199d7ece56 Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Tue, 12 Mar 2024 20:02:01 +0100 Subject: [PATCH] Expose char_width on Segment --- src/segment.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/segment.rs b/src/segment.rs index adad627..ff4ae1e 100644 --- a/src/segment.rs +++ b/src/segment.rs @@ -53,6 +53,10 @@ impl Segment { pub fn is_inverse(&self) -> bool { self.pen.is_inverse() } + + pub fn char_width(&self) -> usize { + self.char_width + } } impl Dump for Segment {