Skip to content
Snippets Groups Projects
Commit b402a46d authored by Florian Blasius's avatar Florian Blasius
Browse files

Merge branch 'text-width' into 'master'

Fix the text width measurement for the bitmap font

See merge request redox-os/orbtk!91
parents 06145e90 09559bea
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment