mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Use word-break to decide how glyph runs should be created
This commit is contained in:
parent
d5669ead29
commit
e0a48fe596
4 changed files with 15 additions and 72 deletions
|
@ -1640,7 +1640,7 @@ impl Fragment {
|
|||
word_break::T::normal => {
|
||||
// Break at normal word boundaries, allowing for soft wrap opportunities.
|
||||
let soft_wrap_breaking_strategy =
|
||||
text_fragment_info.run.soft_wrap_slices_in_range(&text_fragment_info.range);
|
||||
text_fragment_info.run.natural_word_slices_in_range(&text_fragment_info.range);
|
||||
self.calculate_split_position_using_breaking_strategy(
|
||||
soft_wrap_breaking_strategy,
|
||||
max_inline_size,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue