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)

crate_leftclick_dosbox.png (14.3 KB ) - added by mduggan 3 days ago.
crate_rightclick_dosbox.png (11.8 KB ) - added by mduggan 3 days ago.
crate_rightclick_scummvm.png (13.7 KB ) - added by mduggan 3 days ago.
crate_leftclick_scummvm.png (17.7 KB ) - added by mduggan 3 days ago.

Download all attachments as: .zip

Change History (8)

comment:1 by mduggan, 3 days ago

Summary: Foreground text is one pixel off to the rightDGDS: Foreground text is one pixel off to the right

by mduggan, 3 days ago

Attachment: crate_leftclick_dosbox.png added

by mduggan, 3 days ago

Attachment: crate_rightclick_dosbox.png added

by mduggan, 3 days ago

by mduggan, 3 days ago

Attachment: crate_leftclick_scummvm.png added

comment:2 by mduggan, 3 days ago

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.

comment:3 by mduggan, 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 mduggan, 2 days ago

Summary: DGDS: Foreground text is one pixel off to the rightDGDS: Text wrapping algorithm does not match original for short dialogs
Note: See TracTickets for help on using tickets.