x


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.

more ▼

asked May 24 '12 at 09:08 PM

Jessica_Ann gravatar image

Jessica_Ann
60 1 2 4

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

May 24 '12 at 09:30 PM Wolfram

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

May 25 '12 at 01:25 AM You!
(comments are locked)
10|3000 characters needed characters left

3 answers: sort voted first

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)
more ▼

answered May 25 '12 at 01:25 PM

Jessica_Ann gravatar image

Jessica_Ann
60 1 2 4

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

May 25 '12 at 01:27 PM Wolfram
(comments are locked)
10|3000 characters needed characters left

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

more ▼

answered Jun 11 '12 at 02:28 PM

Jessica_Ann gravatar image

Jessica_Ann
60 1 2 4

(comments are locked)
10|3000 characters needed characters left

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)
more ▼

answered May 25 '12 at 06:49 PM

Jessica_Ann gravatar image

Jessica_Ann
60 1 2 4

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

Jun 11 '12 at 02:32 PM Wolfram
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

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

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x241
x81
x4

asked: May 24 '12 at 09:08 PM

Seen: 647 times

Last Updated: Jun 11 '12 at 02:32 PM