Opened 16 months ago
Last modified 16 months ago
#15536 new defect
DGDS: Text wrapping algorithm does not match original for short dialogs
| Reported by: | BehindTimes | Owned by: | |
|---|---|---|---|
| Priority: | normal | Component: | Engine: DGDS |
| Version: | Keywords: | ||
| Cc: | Game: | Rise of the Dragon |
Description
This can create invalid text wrapping.
As an example, in the scene with Chang Li, if you look at the shipping crates, the text will be improperly broken up. One extra pixel of width, and it appears properly.
Attachments (4)
Change History (8)
comment:1 by , 16 months ago
| Summary: | Foreground text is one pixel off to the right → DGDS: Foreground text is one pixel off to the right |
|---|
by , 16 months ago
| Attachment: | crate_leftclick_dosbox.png added |
|---|
by , 16 months ago
| Attachment: | crate_rightclick_dosbox.png added |
|---|
by , 16 months ago
| Attachment: | crate_rightclick_scummvm.png added |
|---|
by , 16 months ago
| Attachment: | crate_leftclick_scummvm.png added |
|---|
comment:2 by , 16 months ago
comment:3 by , 16 months ago
Other text boxes seem to be correctly aligned. This textbox has a usable area of 33px, but the word shipping is 34px long. I think the original would never break up a word like our text wrapping does, so it needs a workaround.
comment:4 by , 16 months ago
| Summary: | DGDS: Foreground text is one pixel off to the right → DGDS: Text wrapping algorithm does not match original for short dialogs |
|---|
Note:
See TracTickets
for help on using tickets.

I think it's not quite as simple as it always being 1 pixel to the right - the left-click on the crate is correctly positioned relative to the original.
It's likely a difference in rounding behaviour when centering text. I'll take a look at it.