it's not a flaming mess anymore, but still a lot more tuning to do

This commit is contained in:
bunnie 2022-01-21 02:35:46 +08:00
parent 13b7d73ce9
commit 0677753680
2 changed files with 3 additions and 3 deletions

View file

@ -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)

View file

@ -24,4 +24,4 @@ utralib = { path = "../../utralib"}
[features]
ux_tests = []
default = ["ux_tests"]
default = []