Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: hummada23 on October 02, 2016, 11:44:08 PM
-
Hi,
My NGUI fonts look great in the Unity editor, no matter what size editor window I use. However, if I switch to 'standalone' in the Editor (or build and run the application), then the fonts look very rough.
I think I've tried most of the suggestions in the many other posts about blurry fonts, but I still can't get the standalone versions to look as good as the other versions in the Editor. Can someone help?
Here are my current settings:
My font:
Verdana size 64
My font image settings:
- Mip mapping off
- Trilinear filtering
- Texture type: Sprite (2D and UI)
- Override for Mac and PC: 2048 Truecolor
My UITexture settings:
- Size: 16, 16, 1. Otherwise unscaled except for pixel perfect UIRoot scaling
-
I can now get fonts to display very clearly (when running in all display modes from the Editor, including standalone mode) if I set the default resolution to 1280x768.
Why does this stop my fonts from being blurry?
I'd like to understand this so that I can work out why it still doesn't appear crisp when running outside the Editor. My screen resolution is 1280x800 (different aspect ratio to 1280x768).
-
What's your UIRoot set to? It needs to be set to flexible and not be limited by its max width/height. Generally Unity game window is going to be smaller than your full app. I'm guessing you just limited it on the UIRoot.
-
Thanks.
I've tried both flexible and constrained for the UIRoot, with 2048 as the max height (which I can't reach on my laptop).
Regardless of the setting, the GUI looks clear and sharp in the Editor. However, it doesn't retain the same quality when deployed standalone. I can only get the fonts to appear crisp if I make them very large.
If I make my fonts pixel perfect they are size 78, but I'm shrinking them to 12.
Does any of this provide a clue as to why the GUI looks clear and sharp in the Editor, but not when deployed?
-
Why are you shrinking them to 12? I don't understand that part. Pixel perfect implies 1 pixel on the screen corresponds to 1 pixel of whatever is drawn, such as your fonts. So if your font is size 78, it should be drawn as size 78. If it's size 12, it should be drawn as size 12.
Check your quality settings too. Make sure your build quality isn't set to something silly, like fastest that reduces texture size.