Hello. I am working on an application built by someone else previously, and I have been asked to make some changes. One of these was adding Chinese translations of the content (provided to us by translators, I don’t know the language myself). I am having a problem with horizontal wrapping causing the text size to become much smaller when working with the Chinese text.
I have attached screenshots to illustrate the issue. As you can see from the first image, when inputting English characters, the text size remains consistent regardless of whether the sentence runs over one or multiple lines. The text card element simply grows in height, as expected.
Note that each sentence in the “multiple sentences” example is separated by a blank space. I have not entered any manual line breaks.
The second screenshot shows the problem I am having with Chinese test. As soon as the sentence runs over one line, it gets shrunk significantly.
I realise that part of the problem is that the Chinese character used for a period at the end of a sentence is the following “。” which is a single character that has a small amount of horizontal space built into it. In other words, unlike in English, there actually aren’t any physical blank space characters in between sentences to help the wrapping functionality break up the words accordingly.
This was confirmed when I manually inserted blank spaces after the “。” period character which resulted in normal rendering of the text size. However, this isn’t a suitable solution. Firstly, it is unfeasible for me to go through the application and manually insert spaces into the numerous text boxes that exist. Secondly, even if I could, it still doesn’t entirely fix the problem when there is actually a long sentence without any punctuation characters. It helps a bit, but the text size still gets shrunk, as shown in the final screenshot.
And not knowing the language, I can’t go around placing random blank spaces in between charcters, as I don’t know if it would change the meaning of the words.
I have attempted to play around with the minimum, preferred, and flexible height values of the Layout Element attached to the text card objects, but nothing seems to help.
If anyone has any suggestions for how I could resolve this, it would be greatly appreciated.
Thank you.