You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue description:
When rendering east-Asian language text inside a label, the node is treating whitespace codepoints as a line break point, even though it may be inappropriate. The result is essentially showing one sentence per line, if spaces are used to separate sentences. A semi-correct behavior can be attained by not placing whitespace between sentences.
(The text featured is translated with Google Translate; I apologize if it doesn't make any sense to Japanese readers)
This zip contains NotoSans-Regular.otf and NotoSansJP-Regular.ttf, both of which are used and distributed under the terms of the SIL Open Font License.
The text was updated successfully, but these errors were encountered:
As far as I know, breaking after arbitrary CJK glyph is not correct either, reliable detection of words in CJK, Thai and any other languages when using hyphenation will require use of dictionary. Also, many languages use alternative space marks.
Godot version:
3.2.2 Stable
OS/device including version:
Windows 10 64-bit
Issue description:
When rendering east-Asian language text inside a label, the node is treating whitespace codepoints as a line break point, even though it may be inappropriate. The result is essentially showing one sentence per line, if spaces are used to separate sentences. A semi-correct behavior can be attained by not placing whitespace between sentences.
(The text featured is translated with Google Translate; I apologize if it doesn't make any sense to Japanese readers)
Wikipedia has an article on line-breaking for East-Asian Languages. I believe this is a fairly important feature for supporting these locales as this also impacts presentation of labels in the Godot Editor, which would result in a subpar editor experience.
Steps to reproduce:
Minimal reproduction project:
CJKWordWrapIssue.zip
This zip contains
NotoSans-Regular.otf
andNotoSansJP-Regular.ttf
, both of which are used and distributed under the terms of the SIL Open Font License.The text was updated successfully, but these errors were encountered: