Added an enum with the option for "No Wraping"

This commit is contained in:
Hojjat 2022-12-20 12:48:37 -07:00 committed by Jeremy Soller
parent 48087b592b
commit b9fef72f76
7 changed files with 169 additions and 96 deletions

View file

@ -116,7 +116,7 @@ where
let layout_lines = shape.layout(
self.metrics.font_size,
limits.max().width as i32,
self.line.wrap_simple()
self.line.wrap()
);
let mut width = 0;
@ -180,7 +180,7 @@ where
let layout_lines = shape.layout(
self.metrics.font_size,
layout_w,
self.line.wrap_simple()
self.line.wrap()
);
let mut cache = state.cache.lock().unwrap();