We are looking to implement support for the likes of soft hyphen and zero-width space for languages with really long words (German and Thai in particular). A cursory test shows that zero-with space works fine, but soft hyphen doesn’t—The soft hyphen is displayed like a normal hyphen. I wonder if native support is already in place. Even if it’s not, it’ll be good to know.
Do you want to be able to support this in a project or the Unreal Engine Editor? In any case, you would need to add a font with the supported characters. Alternatively modify the existing Robot font used in Unreal Engine, and add the supported characters.
Hey:) We would like to use it in the textbox (so in a project). Yes I agree that we should first make sure the font supports such characters. Just thought somebody might have already done this. @EliasWick
I tested the same font in Unity, and the soft hyphen works fine. Then in UE4, where lua is used for UI text, I added the soft hyphen to a variable local s = utf8.char(173). It displays like a normal hyphen at runtime without the “hide and show” behavior. I also checked the font family charset, and Latin-1 Supplement is included (soft hyphen falls in this range).