Unity3d Art fonts made using Bmfont cannot be centered on the solution

Source: Internet
Author: User

Article turn from Http://blog.csdn.net/huutu star Ring game http://www.thisisgame.com.cn reprint Please specify

When using fonts made by colleagues with Bmfont, it was found in Unity 3d that it was not aligned in the center.


When you try to align the top alignment center to the bottom, you find that the WordArt is anchored at the top.

So the result is like the picture above, we select the center alignment, but in Unity3d we see the top aligned to the center of the text box.


Because yesterday it was simple to learn the Custom font of unity, so I think you can manually modify the Cunstom font file.

Manually modify the Cunstom font file, such as.


change the Y in the box to 15 (half the height of the image), save it and look at it, and discover that it's the effect we're looking for.


However, it is not always possible to make the fonts from Bmfont and then to modify them, or to modify them from the Bmfont.




For example, when importing text pictures to Bmfont, modify the negative numbers that set Y offset to half the height of the picture.


Article turn from Http://blog.csdn.net/huutu star Ring game http://www.thisisgame.com.cn reprint Please specify

Unity3d Art fonts made using Bmfont cannot be centered on the solution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.