Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Jessica_Ann · May 24, 2012 at 09:08 PM · fontclipping

Unity Font Clipping

Im making a word search game. Im using a normal ariel font but im noticing that the letters are getting clipped. When i look at the font and the sprite atlas everything seems fine and it doesnt look like the actual font is clipped but when it renders it is. Any help would be apperciated.

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Wolfram · May 24, 2012 at 09:30 PM 0
Share

Could you include a snapshot, it would help a lot deter$$anonymous$$ing what is wrong. Also, what are the settings in your font, and in the Component that uses the font? Are you using GUIText, or Text$$anonymous$$eshes, or something else?

avatar image You! · May 25, 2012 at 01:25 AM 0
Share

What is the size of your rectangle? $$anonymous$$aking the rectangle in which the text is contained larger will most likely solve the problem

3 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Jessica_Ann · May 25, 2012 at 01:25 PM

alt textI am using textmeshes. The rectangle in which the character is located in is big enough for the letter. What we are doing is creating a grid of letters for the word search. Each letter is an object called "letter box" on that object is a text mesh.


textmesh.png (42.7 kB)
Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Wolfram · May 25, 2012 at 01:27 PM 0
Share

Thanks, but I meant a snapshot of the Scene view demonstrating the clipping problem ;-) Also, is the font set to Dynamic or something else?

avatar image
0

Answer by Jessica_Ann · May 25, 2012 at 06:49 PM

Its set to dynamic but since we are pushing to a moblile platform i thought that dynamic wasnt supported. it gives me an error saying it will set it to unicode.I will include a screenshot of one of the letters. im sorry but i cant do a screen shot of the game. What you will see is a 'c' the very top line of pixels are missing.We are seeing this in most of the letters. Ive included a scaled up version so you can see the pixels and the actual size. alt text


cutoffletters.png (24.9 kB)
Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Wolfram · Jun 11, 2012 at 02:32 PM 0
Share

We noticed this problem a while ago, too, I think it was always like this (at least since Unity 2.6). The problem seems to be that the texture atlas generated by Unity for the font does not do any padding and/or the UV mapping is too small, so the antialiased rim along at least two sides gets clipped away.

It might be worth it to submit this as a bug report

avatar image
0

Answer by Jessica_Ann · Jun 11, 2012 at 02:28 PM

We decided to switch all the text to sprite text from ezgui which solved this issue.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How can I make the score counter use the custom font? 1 Answer

How to find a font via script? 2 Answers

Is there a way to measure the pixel with/height of a string with a given font? 2 Answers

Font blurring in Ipad 0 Answers

IOS Unity 5 UI, Font/Text not displaying/Disappearing 3 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges