Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 Epicnez · Apr 17, 2020 at 06:01 PM · uitextfontpixelblurry

Pixel Font is Blurry

Hello! I have a custom font I am using for my game and have set it to all the correct settings. The PPU is set to 16, the filter mode is point, and the compression is set to none. The font size is 320, and the rendering mode is set to hinted raster. But for some reason depending on the position of the text I get this strange blurring effect.alt text

alt text

Is it possible to fix this? Also I know I should have used Text Mesh Pro, but it is too late for that now. Thank you, any help is appreciated!

blurexample2.png (266.9 kB)
blurexample.png (269.5 kB)
Comment
Add comment
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

4 Replies

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

Answer by Epicnez · May 17, 2020 at 02:16 AM

@Jasr_88 Converting from Unity's normal text to TMP Pro text fixes the blurring and only distorts the text a little bit when the aspect ratio changes, thanks for your help!

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
avatar image
0

Answer by Jasr_88 · Apr 17, 2020 at 07:59 PM

Remember to activate the Pixel perfect checkbox on your canvas Pixel Perfect Option


captura.png (12.4 kB)
Comment
Add comment · Show 8 · 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 Epicnez · Apr 17, 2020 at 10:48 PM 0
Share

Wow, can't believe I forgot that! Thanks for your help, the blurriness is gone, but since my fonts PPU is 16, when I have text that has a font size smaller than 16, I get this slight distortion, even when the font size is halved by 2. Also in different aspect ratios the font is very distorted. If this cannot realistically be changed with my current situation, it's fine, as it is very $$anonymous$$or (specifically the first problem.) Thank you very much for your help again!alt text

alt text

ar.png (38.6 kB)
avatar image Jasr_88 · Apr 20, 2020 at 06:18 PM 0
Share

Have you tried changing the values of your canvas scaler?, this might help with the PPU and aspect ratio problem.

avatar image Epicnez Jasr_88 · Apr 26, 2020 at 04:40 AM 0
Share

@Jasr_88 I'll try it tomorrow and let you know if it works. Thanks for your reply, sorry it took me five days to see it!

avatar image Epicnez Jasr_88 · Apr 27, 2020 at 10:40 PM 0
Share

@Jasr_88 So my canvases PPU is 16 like my sprites, I'm not sure what other settings would fix the blurry text in other aspect ratios.alt text

screenshot-147.png (19.8 kB)
avatar image Jasr_88 · Apr 27, 2020 at 11:21 PM 0
Share

First of all, I notice that you have your game view Zoomed at 4.59x this is bluring your preview of the game but it doesn't mean that the final product will be that way.

Now, if even in your builds the blur appears, I think that your canvas scaler resolution is very small, I suggest to upscale it to someting like X:2690, Y:1440 and set the "$$anonymous$$atch" value to 0.5, take into consideration that this might chage some positions of your UI so you'll migth have to reacomodate it

Hope it helps!

avatar image Epicnez Jasr_88 · Apr 28, 2020 at 12:54 AM 0
Share

@Jasr_88 Thanks for your reply, I did what you said, and as you mentioned my UI changed size dramatically.alt text

If I size of the toggles and increase the spacing on the panel, the text becomes blurry like this.alt text

Does this mean I should completely restart this screen from scratch? I spent a lot of time and effort on this, but if that is what I have to do I will do it.

avatar image Jasr_88 Epicnez · Apr 28, 2020 at 01:37 AM 0
Share

I am sorry but your images are not available (the link is broken). No, I did not mean that, but if none of the above was helpful, the only thing I can think might be causing some trouble is the rendering mode of the font.

In the project view Select your font and, in the inspector, change the rendering mode from “Smooth” to “Hinted Raster”, hit the apply button and that should be it!

The resolution change thing was just an advice, if you UI design does not get along with that resolution you can get back to 800x600

Show more comments
avatar image
0

Answer by Epicnez · May 11, 2020 at 02:34 AM

@Jasr_88 After adjusting the textboxes sizes to be fitting to the text in them, the distortion is not as bad. Also just noting that this type of blur also occurs on raw images, also the text does not disappear after adjusting the text box sizes. Thank you for your help again!

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
avatar image
0

Answer by Epicnez · May 17, 2020 at 02:16 AM

@Jasr_88 Converting from Unity's normal text to TMP Pro text fixes the blurring and only distorts the text a little bit when the aspect ratio changes, thanks for your help!

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

216 People are following this question.

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

Related Questions

Pixel perfect UI text/canvas point filtering 0 Answers

Text Mesh Pro Ellipsis is just Trucating and not adding "..." 2 Answers

How to fix TextMeshPro breaking lines and escaping random characters? 0 Answers

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

Text gets hidden on frames where other text is behind it 1 Answer


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