Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Text height calculated incorrectly for some texts in Chinese

Discussion in 'UGUI & TextMesh Pro' started by Deadcow_, Jun 20, 2023.

  1. Deadcow_

    Deadcow_

    Joined:
    Mar 13, 2014
    Posts:
    131
    This issue is often happens with Chinese localization for specific lines of text.
    We use ContentSizeFitter with Preferred Vertical fit. In the example below first text with long sequence of characters wrapped (red lines showing desired size of the TextMeshPro element). Sequence is
    "彼と上司のメール...1ヶ月前のものだ。"

    On the second image sequence is "彼は、自分に銃を渡すよう求めていたのか。".
    I'm not quite sure why size calculated differently here.

    TMP version is 3.0.6, Unity is 2020.3.36f1
    Maybe someone will have idea on how to fix it o_O

    2023-06-20_15-45-20.png upload_2023-6-20_15-49-7.png