OpenXcom icon indicating copy to clipboard operation
OpenXcom copied to clipboard

Incorrect text-wrapping behavior in UFOPaedia

Open starslab opened this issue 3 years ago • 2 comments

I've just stumbled upon what I believe to be incorrect text-wrapping behavior in OpenXCom Extended 7.0.3

This is running on Win10-64.

ufopaedia:
  - id: STR_GAUSS_TECH
    type_id: 10
    section: STR_UFO_COMPONENTS
    listOrder: 12501
    requires:
      - STR_GAUSS_TECH
    text: STR_GAUSS_TECH_UFOPEDIA
en-US:
  STR_GAUSS_TECH_UFOPEDIA: "The theory behind Gauss weaponry is not new, and there have been several attempts to develop it in recent years. We have hit the same roadblock as these previous effortsss - to miniaturize a Gauss weapon to the point of portability, several small components of the mechanism must be able to withstand stresses and temperatures that are outside the realm of our materials science."

Produces this screenshot:

effortsss

Whereas:

en-US:
  STR_GAUSS_TECH_UFOPEDIA: "The theory behind Gauss weaponry is not new, and there have been several attempts to develop it in recent years. We have hit the same roadblock as these previous efforts - to miniaturize a Gauss weapon to the point of portability, several small components of the mechanism must be able to withstand stresses and temperatures that are outside the realm of our materials science."

Produces this - Note the missing hyphen after 'efforts'

efforts

starslab avatar Apr 30 '21 01:04 starslab

And I can reproduce it with the stock OpenXCom font as well

  STR_GAUSS_TECH_UFOPEDIA: "The theory behind Gauss weaponry is not new, and there have been several attempts to develop it in recent years. We have hit the same roadblock as theseeeee previousssss bllehhh effortssssss - to miniaturize a Gauss weapon to the point of portability, several small components of the mechanism must be able to withstand stresses and temperatures that are outside the realm of our materials science."

stock

starslab avatar Apr 30 '21 01:04 starslab

Can be reproduced on any OXC/OXCE version, on any GUI with Text component. Hyphen (word separator) probably counts as zero length or something (just guessing).

I tested with a briefing text:

STR_UFO_GROUND_ASSAULT_BRIEFING: "Explore the touchdown site and, if possible, gain entryyyyyyy - to the Alien Sub. The mission will be successful when all enemy units have been eliminated or neutralized. Recovery of the Alien Sub, artifacts and Alien corpses can then be initiated. To abort the mission return X-Com aquanauts to the submarine and click on the 'Abort Mission' icon."

MeridianOXC avatar Aug 09 '22 18:08 MeridianOXC