Non-spacing sentences could not be break automatically
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Won't Fix
|
Medium
|
GunChleoc |
Bug Description
In warehelp window, sentences have line-break correctly.
In message/
In tool tip and loading screen, trying to display more than 20 fullwidth characters in the Japanese font, Widelands crashes or hangs.
Steps to reproduce:
1) Rewrite ./po/win_
"Each player or team tries to obtain more than half of the maps' area. The winner will be the player or the team that is able to keep that area for at least 20 minutes."
add the translation:
msgstr "各プレイヤー(
2) Run ./update.sh or otherwise generate new translations (make lang).
3) Go to Options and set language to Japanese.
4) Click SinglePlayer Menu > New Game > Select a map > Type of game.
5) Mouse over on 'Territorial Lord' to show the tool chip.
Then Widelands crashes with error message:
"widelands-
Version: build-18(Debug)
Operating system: Ubuntu13.10
Font: DejaVuSerif.ttf
Language: Japanese
Related branches
- TiborB: Approve
-
Diff: 253 lines (+191/-3)3 files modifiedsrc/graphic/text/bidi.cc (+176/-2)
src/graphic/text/bidi.h (+6/-0)
src/graphic/text/rt_render.cc (+9/-1)
- Widelands Developers: Pending requested
-
Diff: 253 lines (+191/-3)3 files modifiedsrc/graphic/text/bidi.cc (+176/-2)
src/graphic/text/bidi.h (+6/-0)
src/graphic/text/rt_render.cc (+9/-1)
Changed in widelands: | |
status: | Expired → Confirmed |
Changed in widelands: | |
status: | Confirmed → In Progress |
assignee: | nobody → GunChleoc (gunchleoc) |
milestone: | none → build19-rc1 |
Changed in widelands: | |
status: | In Progress → Triaged |
milestone: | build19-rc1 → none |
Changed in widelands: | |
milestone: | none → build20-rc1 |
Changed in widelands: | |
milestone: | build20-rc1 → build21-rc1 |
Thanks for reporting this issue.
I added the suggested string to the ja.po translation and rebuilt them using ./update.sh. I was not able to trigger a crash though, because I only got empty squares/missing characters, even when using DejaVuSerif too.
Running in a particular language causing a crash sounds pretty bad, but I guess we should sort out the other issues too.