fn wrap_word_chunks(line: &str, width: usize, fallback_to_glyph: bool) -> usize
Wraps the given line at word boundaries, falling back to grapheme splitting for words wider than the width when enabled.