From 0677753680d4cc5e21397757c2b203a7426b5e71 Mon Sep 17 00:00:00 2001 From: bunnie Date: Fri, 21 Jan 2022 02:35:46 +0800 Subject: [PATCH] it's not a flaming mess anymore, but still a lot more tuning to do --- services/graphics-server/src/wordwrap.rs | 4 ++-- services/modals/Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/services/graphics-server/src/wordwrap.rs b/services/graphics-server/src/wordwrap.rs index 46db68be6..b55318cca 100644 --- a/services/graphics-server/src/wordwrap.rs +++ b/services/graphics-server/src/wordwrap.rs @@ -268,13 +268,13 @@ impl Typesetter { self.cursor ); } - if self.bb.max.y - self.bb.min.y < glyph_to_height_hint(GlyphStyle::Regular) { + /*if self.bb.max.y - self.bb.min.y < glyph_to_height_hint(GlyphStyle::Regular) { log::error!("Words cannot be typset because the height of the typset region is too low."); return ComposedType::new(composition, ClipRect::new(self.bb.min.x, self.bb.min.y, self.bb.min.x, self.bb.min.y), self.cursor ); - } + }*/ // algorithm: // - If not a whitespace or newline: // 1. append a character to the current word (candidate) diff --git a/services/modals/Cargo.toml b/services/modals/Cargo.toml index bc3ec35f4..e2722a8b9 100644 --- a/services/modals/Cargo.toml +++ b/services/modals/Cargo.toml @@ -24,4 +24,4 @@ utralib = { path = "../../utralib"} [features] ux_tests = [] -default = ["ux_tests"] +default = []