Author Topic: Some characters are blurry when others are clear in a label  (Read 2343 times)

xushunwang

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 11
    • View Profile
Some characters are blurry when others are clear in a label
« on: November 26, 2014, 07:23:34 AM »
Hey,I'm a Chinese developer.So in my game I must use Chinese font.
I type  some words in the label like "远程武器攻击力+{0} : 命中率+{1:0.##%} : 闪避率+{2:0.##%}",and use dynamic font called "simsun".
I set the font size to 12 ,no  gradient and effect.

And in the NGUIText.cs / Update method,I add the code
  1. dynamicFont.material.mainTexture.wrapMode = TextureWrapMode.Clamp;
  2. dynamicFont.material.mainTexture.filterMode = FilterMode.Point;
  3.  

because I can't change the filterMode in the inspector.

It will display like this :


The Chinese are very clear but the English are blurry.I don't know why it happened like this.
When I install the font and use it in the photoshop,the words are all clear in that size.

You can download the font file here:http://www.fontpalace.com/font-download/SimSun/
« Last Edit: November 26, 2014, 07:51:39 AM by xushunwang »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Some characters are blurry when others are clear in a label
« Reply #1 on: November 26, 2014, 08:23:45 PM »
Dynamic font = all Unity. You are seeing what Unity gives NGUI.