Fall back to ragged spacing at extreme justification ratios
This commit is contained in:
1 parent
93bc5ac945
commit
261f0ea278
2 files changed
+6
-1
No files matched your search
@@ -1348,11 +1348,14 @@ fn break_inline_items(
|
||||
}
|
||||
});
|
||||
let ratio_magnitude = f64::from(line_box.glue_ratio.as_float()).abs();
|
||||
let ratio = if line_box.width < natural_width {
|
||||
let mut ratio = if line_box.width < natural_width {
|
||||
-ratio_magnitude
|
||||
} else {
|
||||
ratio_magnitude
|
||||
};
|
||||
if ratio.abs() > 3.0 {
|
||||
ratio = 0.0;
|
||||
}
|
||||
let mut natural_pre_display_width = scaled_mm(pre_display_extra);
|
||||
let mut pre_display_width_uses_adjusted_glue = false;
|
||||
let mut pre_display_size = None;
|
||||
|
||||
Reference in new issue
Block a user