0ad/source/gui/SettingTypes
wraitii f4128208de Fix text alignment handling of spaces around wrapping.
Follows f8d2927748.

There is an issue with text-wrapping and word separators (aka spaces).
Because 0 A.D. collates the space after a word to the same TextCall, we
occasionally need to ignore it when considering line-wrapping, because
we don't want empty spaces on the right-side of right-aligned text.
However, the logic to handle this is currently broken and inconsistent.

The method introduced here uses the SFeedback structure to properly
report it and generalises the checks.

Note that multiples spaces are not collapsed in 0 A.D., and for
consistency the word-separator-collapsing behaviour is ignored.

Comments by: phosit, vlasdislavbelov
Fixes #6551

Differential Revision: https://code.wildfiregames.com/D4662
This was SVN commit r26915.
2022-06-02 12:56:53 +00:00
..
CGUIColor.cpp Sort GUI Object types, GUI Object bases and GUI Setting value types into three new folders. 2019-10-02 09:44:00 +00:00
CGUIColor.h Adds header for forward declarations of CStr. 2021-09-09 17:39:08 +00:00
CGUIHotkey.cpp Split JS conversions from ScriptInterface. 2021-05-13 09:43:33 +00:00
CGUIHotkey.h Fix no-pch build. Potentially fixes bb49fbe793, 0198942a79, 34b1920e7b, 8b08f4ae7a 0dbf417171, 3af1fc64d2, 5fbdbaa3bc, 6fbf036ae4. 2021-05-12 13:48:55 +00:00
CGUIList.h Sort GUI Object types, GUI Object bases and GUI Setting value types into three new folders. 2019-10-02 09:44:00 +00:00
CGUISeries.h Sort GUI Object types, GUI Object bases and GUI Setting value types into three new folders. 2019-10-02 09:44:00 +00:00
CGUISize.cpp Fixes broken PCH after wraitii commits (4f972bc623, 0f60bf3a97) and Itms (833c9f108c). 2021-05-15 14:50:24 +00:00
CGUISize.h Adds header for forward declarations of CStr. 2021-09-09 17:39:08 +00:00
CGUIString.cpp Fix text alignment handling of spaces around wrapping. 2022-06-02 12:56:53 +00:00
CGUIString.h Fix text alignment handling of spaces around wrapping. 2022-06-02 12:56:53 +00:00
EAlign.h Moves CSize into a separate file and renames it to CSize2D according to other geometric entities. 2021-03-27 16:08:06 +00:00
MouseEventMask.cpp Uncompress cached DDS in mouse event mask. 2021-06-09 13:50:57 +00:00
MouseEventMask.h Fix no-pch build. Potentially fixes bb49fbe793, 0198942a79, 34b1920e7b, 8b08f4ae7a 0dbf417171, 3af1fc64d2, 5fbdbaa3bc, 6fbf036ae4. 2021-05-12 13:48:55 +00:00