mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
fix typsetter overflow check
got the axes inverted. oops.
This commit is contained in:
parent
ecb42c6a0e
commit
17fb590d9a
1 changed files with 1 additions and 1 deletions
|
|
@ -269,7 +269,7 @@ impl Typesetter {
|
||||||
// going out of scope at the end of the call.
|
// going out of scope at the end of the call.
|
||||||
let mut composition = Vec::<TypesetWord>::new();
|
let mut composition = Vec::<TypesetWord>::new();
|
||||||
|
|
||||||
if self.bb.max.y - self.bb.min.y < glyph_to_height_hint(GlyphStyle::Regular) as i16 {
|
if self.bb.max.x - self.bb.min.x < glyph_to_height_hint(GlyphStyle::Regular) as i16 {
|
||||||
// we flag this because the typesetter algorithm may never converge if it can't set any characters
|
// we flag this because the typesetter algorithm may never converge if it can't set any characters
|
||||||
// because the region is just too narrow.
|
// because the region is just too narrow.
|
||||||
log::error!("Words cannot be typset because the width of the typset region is too narrow.");
|
log::error!("Words cannot be typset because the width of the typset region is too narrow.");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue