mirror of
https://github.com/storytold/deckcraft.git
synced 2026-11-05 18:09:32 +00:00
Text: Thai distributed paragraphs still stretch like justified ones
This commit is contained in:
1 parent
e4a0c2971b
commit
4df4ea6c9f
1 file changed
+1
-1
@@ -418,7 +418,7 @@ fn justify_line(p: &ParaShaped, rl: &RawLine, adv: &mut [f64], align: Align, sla
|
||||
filled = true;
|
||||
}
|
||||
}
|
||||
if stretch && !filled && matches!(align, Align::Justify | Align::JustLow) {
|
||||
if stretch && !filled && matches!(align, Align::Justify | Align::JustLow | Align::ThaiDistributed) {
|
||||
let spaces = line_cells.iter().filter(|c| c.ch == ' ').count();
|
||||
if spaces > 0 {
|
||||
for (a, c) in adv.iter_mut().zip(line_cells) {
|
||||
|
||||
Reference in new issue
Block a user