Author Topic: Blured dynamic small font output?  (Read 6846 times)

nemone76

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Blured dynamic small font output?
« on: February 04, 2014, 01:07:25 AM »
Hello.

I used 3.0.7 f1 NGUI in Unity 4.3.3f1

I have updated the ngui to 3.4.8 yesterday.

And I have a problem about dynamic font output with small size( about font size 15 ).

Big font size(about font size : 30) have no problem or I can't realize.

I found a other post about same issue.
and I have tested several times.
But, I can't solve this issue.

I don't want to my project to be pixel perfect in mobile.
I have moved label's position to adjust pixel. but it's not work perfectly.
I changed label's pivot but it's not work perfectly.
Sometimes text more clear just a very little but, it's not perfect.
And, I have input  0.5 to pixel offset in anchor component but it's not work.

I have made a compare image and attached.

Left image is 3.0.7 f1 and, right image is 3.4.8


I never can use this blurry text.

Please. help me.

Thx.



ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Blured dynamic small font output?
« Reply #1 on: February 04, 2014, 03:00:04 AM »
Half-pixel offset should not be used anywhere. UIAnchor used to add it, but now it's handled differently -- so it's important that your entire UI is using whole pixels (no floating-point positions anywhere).

I also strongly advise using font sizes that are dividable by two. So instead of size 15, use size 14 or size 16. They center better.

nemone76

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: Blured dynamic small font output?
« Reply #2 on: February 04, 2014, 07:18:47 AM »
I found a some clue.

My NGUI target resolution is 1280 * 720 .

I work in FixedSize and Manual Height is 720.

I usually work in window with Unity Editor.

My game scene window of unity editor  is small about 600 * 300 size.

This setting cause a blurry text output.

If I set game scene window size to 1280 * 720 then text is output clearly.


1. run UnityEditor with small game scene window.
2. You can see blurry text.
3. Set Scaling Style to  PixelPerfect in UIRoot.
4. Lost focus from UnityEditor and focus again to update UILabel text update.
5. You can see text clearly.
6. Set Scaling Style to FixedSize in UIRoot again.
7. You can see still clear text.

Could you make a plan to fix this issue soon?


Thx.












ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Blured dynamic small font output?
« Reply #3 on: February 04, 2014, 07:54:44 AM »
Unless I am misunderstanding the issue, there is nothing to fix. If you set your UIRoot to a fixed size setting, then the UIRoot will never be pixel-perfect unless your game window matches the same height. That's how it works. If you want it to always be crisp, use the Pixel Perfect setting.

nemone76

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: Blured dynamic small font output?
« Reply #4 on: February 04, 2014, 10:19:11 PM »

OK.

I am understanding  FixedSize and PixelPerfect.

Our game project is for mobile game.

Many mobile devices have each resolution.

I don't want to be changed UI size.

How can I solve blurry text with FixedSize ?

Let's see image attached in upper post.

This issue is occur by upgrade to 3.4.8 from 3.0.7f1.

I think, this issue is not about pixel perfect output with plane vertices and texture.

I guess uncertainly.
The created text's texture or vertices is small by current screen resolution.
Creating texture or plane vertices of text is influenced by current screen resolution.
How think about that text texture or plane vertices is made with target resolution of UIRoot?
And then scale it with current resolution in fixedsize.

Thx.




ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Blured dynamic small font output?
« Reply #5 on: February 05, 2014, 03:09:58 PM »
If you want dynamic font using labels to be crisp even in fixed size, then you need to choose that option on the label. By default, the crisp option is set to "only on desktop".

PoN

  • Full Member
  • ***
  • Thank You
  • -Given: 1
  • -Receive: 4
  • Posts: 111
    • View Profile
Re: Blured dynamic small font output?
« Reply #6 on: March 10, 2014, 05:18:27 AM »
i have same bug.Font size is 16,also set Effect - Black Outline 1px,. look not good on Retina displays, as had been early in 2.7 vers., now NGUI v is 3.4.8, scaling style  - FixedSizeOnMobiles.
Worked on Doc&DogAge Of Fury 3D. Actually working on WarMach.