Author Topic: Font SD/HD/SHD switching with Make Pixel Perfect  (Read 2524 times)

FizzPow

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 83
    • View Profile
    • FizzPow Games
Font SD/HD/SHD switching with Make Pixel Perfect
« on: December 27, 2012, 07:55:46 PM »
So I have this all working, but I am running into a problem with trying to use "Make Pixel Perfect" on these fonts.  It is not using the relative pixel size like it does for UIAtlas references.  I am using 3 fonts without atlas's and there is no setting for pixel size like there is for using UIAtlas with a reference.  Is there any solution for this?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Font SD/HD/SHD switching with Make Pixel Perfect
« Reply #1 on: December 27, 2012, 08:32:31 PM »
The pixel size setting is specified only on atlases. If you add your fonts to your atlases, then you can take advantage of it.

FizzPow

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 83
    • View Profile
    • FizzPow Games
Re: Font SD/HD/SHD switching with Make Pixel Perfect
« Reply #2 on: December 27, 2012, 08:34:21 PM »
Hmm, I am creating my atlas's with Texture Packer, so I don't think this is an option.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Font SD/HD/SHD switching with Make Pixel Perfect
« Reply #3 on: December 28, 2012, 11:57:48 AM »
It's fine. Just add the font's texture as if it was a sprite. When creating the font you can specify which atlas+sprite to use for its texture, along with the font's data (TXT).