58 views
in GUI Development by
Hi Tara,

Recently we had to solve a problem in a component used to display Chinese characters that is made using attributed text. The complaint was that the text would wrap in a strange way and only where space character 0x0020 occurs. Our fix was to introduce the silent soft hyphen character '^' at some regular intervals in the Chinese strings. This does seem to work reasonably well.. although it seems expensive to visit each character in the string to append the extra '^'. We wondered was there a better way to solve this kind of problem for Chinese where word spacing is not like in Western languages.

Regards,

Niall.

1 Answer

0 votes
by
 
Best answer

Hello Niall,

We wondered was there a better way to solve this kind of problem for Chinese where word spacing is not like in Western languages.

the text wrap occurs at space characters or at explicitly dedicated signs like soft hyphen only. There is no other automatism to detect language specific wrap candidates.

Best regards

Paul Banach

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...