- Home /
Question by
Unity-Wenchao · Nov 04, 2017 at 03:13 AM ·
textlayoutalignment
Why Unity Font Has a Gap in Text Rectangle?
I Create a Text GameObject, I set the Alignment to UpperLeft, but there is a gap between the font texture wire and the upper bound?
Why this happens and is there a method to calculate the gap?
When the text boundary is smaller than the text, there still exists the gap. When I Set the alignment to MiddleXXX, the gap will disappear.
textsetting.png
(20.2 kB)
gap.png
(14.3 kB)
Comment
Answer by · Nov 06, 2017 at 12:24 PM
@Unity-Wenchao You have to use "Align by Geometry" option in Paragraph section, avaliable in Unity 5.3 and higher.
Your answer
