Opened 11 months ago
Closed 10 months ago
#14832 closed defect (fixed)
ULTIMA8: Plaques do not properly center text
Reported by: | OMGPizzaGuy | Owned by: | wjp |
---|---|---|---|
Priority: | normal | Component: | Engine: Ultima |
Version: | Keywords: | ||
Cc: | Game: | Ultima VIII: Pagan |
Description
Text on plaques and other ReadableGump instances do not center text properly. Check "The Royal Hall" plaque in Central Tenebrae. This appears to be from an untrimmed space in the text "THE*ROYAL*HALL "
Change History (2)
comment:1 by , 11 months ago
comment:2 by , 10 months ago
Owner: | set to |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Checked this in dosbox by modifying plaque texts: for the purposes of centering, (one or more) spaces or %'s (tabs) at the beginning and end of each individual line are trimmed.
Combinations of spaces and %'s are not always all trimmed. It seems the algorithm is to strip spaces first and then strip tabs. (I doubt it matters to be fully faithful there though.)
On scrolls (and presumably other non-centered gumps), tabs at the beginning of a line are not stripped, but spaces are.