Opened 3 days ago
Last modified 2 days 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 , 3 days ago
Summary: | Foreground text is one pixel off to the right → DGDS: Foreground text is one pixel off to the right |
---|
by , 3 days ago
Attachment: | crate_leftclick_dosbox.png added |
---|
by , 3 days ago
Attachment: | crate_rightclick_dosbox.png added |
---|
by , 3 days ago
Attachment: | crate_rightclick_scummvm.png added |
---|
by , 3 days ago
Attachment: | crate_leftclick_scummvm.png added |
---|
comment:2 by , 3 days ago
comment:3 by , 2 days 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 , 2 days 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.