Skip to content

Commit

Permalink
Expose char_width on Segment
Browse files Browse the repository at this point in the history
  • Loading branch information
ku1ik committed Mar 12, 2024
1 parent 4e43d7e commit 40ff45f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/segment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 40ff45f

Please sign in to comment.