Fonts: word-wrapping code handle ideographic comma & full stop (U+3001, U+3002). (#8540)

This commit is contained in:
ocornut
2025-04-01 22:56:59 +02:00
parent fcab22f80f
commit b4bd596a39
2 changed files with 2 additions and 1 deletions

View File

@@ -4009,7 +4009,7 @@ const char* ImFont::CalcWordWrapPositionA(float scale, const char* text, const c
}
// Allow wrapping after punctuation.
inside_word = (c != '.' && c != ',' && c != ';' && c != '!' && c != '?' && c != '\"');
inside_word = (c != '.' && c != ',' && c != ';' && c != '!' && c != '?' && c != '\"' && c != 0x3001 && c != 0x3002);
}
// We ignore blank width at the end of the line (they can be skipped)