Use word-break to decide how glyph runs should be created

This commit is contained in:
Felipe 2016-09-27 10:02:33 +02:00 committed by Felipe Lacerda
parent d5669ead29
commit e0a48fe596
4 changed files with 15 additions and 72 deletions

View file

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