diff --git a/src/backend/orbital/mod.rs b/src/backend/orbital/mod.rs index ba0799539512f5ba5711be55eecbc6b80c045272..1997d5534198fc8f5cb7dd801e5e201d042bf937 100644 --- a/src/backend/orbital/mod.rs +++ b/src/backend/orbital/mod.rs @@ -42,7 +42,7 @@ impl FontMeasure for OrbFontMeasure { return (text.width(), text.height()) } - (text.len() as u32 * 8 + 2, 18) + (text.chars().count() as u32 * 8 + 2, 18) } } @@ -60,4 +60,4 @@ lazy_static! { font }) }; -} \ No newline at end of file +}