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_


    Mar 13, 2014
    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

    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