Author Topic: Bitmap Font Positioning Issues  (Read 2309 times)

sjsivak

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Bitmap Font Positioning Issues
« on: April 24, 2014, 03:41:15 PM »
I have tried to google this for the last hour or so and no luck. We are using NGUI 3.4.8 and having some problems with a bitmap font. The UILabel Overflow is set to ShrinkContent and it causes certain letters to appear inconsistently. Take a look at the screenshot, the problem is most apparent in the "i"s in "cities". Is this something we are doing wrong with the atlas? We have tried a few different fonts and we always see this problem. It goes away if we use bitmap fonts and choose not to scale it, but that is not going to work for us long term.


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Bitmap Font Positioning Issues
« Reply #1 on: April 25, 2014, 09:09:56 AM »
It's just texture filtering. If you scale something, filtering kicks in and you either downsample or upsample the pixels, resulting in inconsistencies where it's not 1:1.