Author Topic: Font not fitting inside bounds  (Read 4248 times)

Twiitch

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Font not fitting inside bounds
« on: March 12, 2013, 08:05:22 PM »
I've created a new atlas and font (using GlyphDesigner on Mac), however when NGUI renders the font it doesn't quite fit inside its bounds.

I've attached an image which I hope explains the issue. In this instance, I've created an anchor at top-right, and a label with it's origin also at the top-right.

Any idea why?

Cheers,
Shane


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Font not fitting inside bounds
« Reply #1 on: March 13, 2013, 01:03:04 AM »
NGUI goes by what Glyph Designer exported, so it's an issue with Glyph Designer, not NGUI.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Font not fitting inside bounds
« Reply #2 on: March 13, 2013, 06:48:44 AM »
Dude, don't put the full NGUI on a public forum. Send the project to support [at] tasharen.com

Twiitch

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Re: Font not fitting inside bounds
« Reply #3 on: March 14, 2013, 02:49:04 AM »
I didn't realise there was a direct support email address, was just trying to help. Had I known, I would have just gone there from the start.

In any case, what the deleted post said was that the issue happens with the built in Fantasy Atlas and Font. Any idea why?


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Font not fitting inside bounds
« Reply #4 on: March 14, 2013, 04:16:55 AM »
Because I baked a shadow effect into the label's texture, thus extending the letters without ever adjusting the TXT file with the glyph positions. It's the shadow that goes outside the bounds.

Twiitch

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Re: Font not fitting inside bounds
« Reply #5 on: March 14, 2013, 04:44:19 AM »
OK.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Font not fitting inside bounds
« Reply #6 on: March 14, 2013, 07:29:02 AM »
Sorry for my outburst - it was not meant in an antagonistic way.

You did the right thing going to the forum, but if you need to exchange actual code (with NGUI included) then the email is where to go. :)

Twiitch

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Re: Font not fitting inside bounds
« Reply #7 on: March 14, 2013, 08:22:34 PM »
No problem at all.