Author Topic: Fontmaker not working if the Atlas is 4096x2048?  (Read 4213 times)

imakemygame

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 11
    • View Profile
Fontmaker not working if the Atlas is 4096x2048?
« on: November 12, 2013, 03:34:30 PM »
Hello,
if I use the Atlas Maker, you know there is the option to get the 4096x4096 size. But now I wanted the Font Maker to put a font in my atlas and there is no such option. Now I get the error "Operation canceled .. The selected sprites can“t fit into the atlas... "
But my font is 256x256 and my atlas is 4096x2048 and there is enough space for 256x256 I see. But I think the font maker is not trying to use the 4096x4096 size. Is there a way to set the option true which is available in the atlas maker?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Fontmaker not working if the Atlas is 4096x2048?
« Reply #1 on: November 12, 2013, 03:37:03 PM »
Depending on the target platform, you may be actually limited to 2048x2048. I'd check that first.

imakemygame

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 11
    • View Profile
Re: Fontmaker not working if the Atlas is 4096x2048?
« Reply #2 on: November 13, 2013, 02:39:07 PM »
I do not understand what you posted? Why is it important which target platform I prefer? Where is the parameter?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Fontmaker not working if the Atlas is 4096x2048?
« Reply #3 on: November 13, 2013, 03:26:47 PM »
Hardware limitations matter more than anything else, and that's why the platform is important. Most mobile devices are still limited to 2048x2048, for example. Only the most recent ones can do 4096x4096. Some older ones can only do 1024x1024. If you create an atlas targeting Stand-alone, you can get a 4096x2048 atlas for example. But if you then switch to a mobile platform, your atlas may be unusable, and trying to change it will always give you an error, even if you are removing assets.

imakemygame

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 11
    • View Profile
Re: Fontmaker not working if the Atlas is 4096x2048?
« Reply #4 on: November 13, 2013, 04:16:41 PM »
Yes I understand. But my atlas works fine. Only the Font Maker is not working. As I said: my atlas has enough free space for the font I want to add to my atlas. But I get the error. So it make no sense that the target device is causing this error?!?

As I said. I think the Font Maker seems to be the cap. Are you sure the Font Maker is working with the Atlas of 4096x2048?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Fontmaker not working if the Atlas is 4096x2048?
« Reply #5 on: November 13, 2013, 04:36:54 PM »
Did you try adding the font's texture to the atlas by itself? You can always just do that, and then on your UIFont specify that atlas and sprite plus the TXT file combo, and create a font that way. I'm guessing adding that texture by itself won't work either?

imakemygame

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 11
    • View Profile
Re: Fontmaker not working if the Atlas is 4096x2048?
« Reply #6 on: November 14, 2013, 12:32:37 AM »
Ah I did not know how to do this by my self. Just looked your video how to do that with the font maker. Now if I put the font with the atlas maker in the atlas and then set up the font it worked fine without any issue.
Thanks you are a great help