Large fonts don't work

Senitary

  • Posts: 12
While trying to make a hi-score table, I found out that for any font size i used above 33, the font wouldn't work.

Here is a test of font size 33:

While here is the same thing at font size 34:

I also noticed that there's "Using Default Font" in the console when i try anything 34 and over.

Rhys says this has to do with .png size and i have no idea.

Jon

  • *
  • Posts: 17524
2880 width limit. Since it looks like numbers only, why not make it so and avoid the issue?

Senitary

  • Posts: 12
Well I was going to use both but i guess i could just pre-render the text

Epic428

  • Posts: 1118
I believe Flash has a limit of 2880 for Sprite Sizes - and it is not a Stencyl Limit

Edit: I retract that statement: http://www.bit-101.com/blog/?p=1426
James Moore - Official Support & Documentation.
We cannot and will not respond to PM's asking questions. Please make a new thread in the forums if you have any questions, Thank you.
For better support and faster response times, please post your logs regarding any Stencyl related issues. Debug > Logs > Generate Logs

Jon

  • *
  • Posts: 17524
We don't enforce the limit on our side.

Jon

  • *
  • Posts: 17524
If a dev wants to take this on, you need to modify two files.

SW

FontHelper.java

ENGINE

FlxBitmapFont.as

The goal is to modify the SW font writing routine to stop writing at 2880 and wrap back around and start a new line. You must modify the code that stores the horizontal offsets, so that it now stores both vertical offsets and horizontal offsets.

Then, you need to modify the engine code to stop assuming you only get horizontal offsets and take vertical ones into account.

Don't worry about the edge-case where both the horiz and vert dimensions as 2880.

Darkhog

  • Posts: 1243
Or just cut image into chunks where every chunk is separate bitmapdata. Then we'll be able to have sprites with infinite sizes BUAHAHAHA!!!!!!! Erm... Sorry for that.

There are no impossible things. There is only lack of skills.
Don't click this if your computer has less than 641 kilobytes of RAM.
Stencyl stencyling stencylish stencylers :D

Jon

  • *
  • Posts: 17524
There's a possibility that this one will end up being accomplished before launch, depending on timing and luck. We're crossing our fingers and will report back more as it develops.

Jon-iPad

  • *
  • Posts: 166
Will be fixed in 1.0.0, although the corner case of a font map so big that no matter what, it exceeds the 2880, we aren't fixing right now, but this will suffice for most cases.

Jon

  • *
  • Posts: 17524
Reupgrade your copy of StencylWorks to pick it up.