Author Topic: Font Maker Scaling Artifacts?  (Read 2971 times)

Paul

  • Newbie
  • *
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 22
    • View Profile
Font Maker Scaling Artifacts?
« on: November 23, 2015, 06:05:13 PM »
Hello, I've used Font Maker w/ a .ttf and created a size 64 font ( Windows 8.1, Unity 4, NGUI 3.8 ). I then created a UILabel and set the font size to 64 (transform scale is 1,1,1)

For the most part this works great, however I'm noticing some edge artifacts at varying window sizes (happens in-editor and release builds when changing resolutions):


I tried changing the atlas "Texture Type" in Unity from "Texture" to "GUI" to debug, which _does_ remove the vertical line artifacts, however everything looks quite pixellated (like no AA is being applied):


This happens with or without the drop shadow label effect. I've included the portion of the atlas with the size 64 font (I've made the background black in Photoshop):


Any idea what's causing this? I tried searching the forums but couldn't find exactly this problem. My understanding is that as long as the font size matches the UILabel size, it should just work? The letters DO look quite close together in the atlas, but I didn't see an option to add padding in Font Maker, and the Padding in Atlas Maker had no effect. At the root level, I'm using UIRoot "Constrained" @1280x800 w/ "Content Height Fit" TRUE.

Thanks again for the great support on these forums, ArenMook!
« Last Edit: November 23, 2015, 06:21:14 PM by Paul »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Font Maker Scaling Artifacts?
« Reply #1 on: November 25, 2015, 05:35:16 PM »
Select the font and click the "Add Transparent Border (+1)" button. Depending on how much you scaled the font you may need to click it a few times.

Paul

  • Newbie
  • *
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 22
    • View Profile
Re: Font Maker Scaling Artifacts?
« Reply #2 on: November 25, 2015, 09:22:57 PM »
 OMG! It was that easy all along!! You are a life saver. :'( :'( :'( <--- tears of joy.