SpriteFont Right Justify cuts off letter

  • Link to .capx file (required!):

    https://dl.dropboxusercontent.com/u/85412219/forumposts/fontrightjustifyerror.capx

    Steps to reproduce:

    1. Open the capx, note the word "right" has a T

    2. Preview

    3. Notice the T in Right gets cut off, no matter the space left

    Observed result:

    The T in "Right" gets cut off, no matter the space left.

    Work around is to add an extra character to get cut off.

    Expected result:

    Not losing the last letter.

    Browsers affected:

    Chrome: yes

    Firefox: yes

    Internet Explorer: yes

    Operating system & service pack:

    Windows 7

    Construct 2 version:

    r236 64bit

        

    Edit: if you add a character as a work around, it can't be a space, they are apparently trimmed.

    Also it seems to only happen with over 9 characters.

  • uh oh, just got an error trying to test in IE10 that may be related:

    ---------------------------

    Message from webpage

    ---------------------------

    Javascript error!

    Object doesn't support property or method 'trimRight'

    localhost/Spritefont2_plugin.js, line 490 (col undefined)

    This is either a bug in Construct 2 or a problem in a third party plugin or behavior - please report it to the developer!

    ---------------------------

    OK   

    ---------------------------

    My test capx above didn't give this error, so I will have to poke around some more, see what else could be causing it.

  • I turned off WebGL, and my loaded in Chrome, but on trying to go to the 1st level I got this java error:

    Javascript error!

    Uncaught TypeError: Cannot call method 'loadTexture' of nullhttp://localhost:50000/Particles_plugin.js, line 70 (col undefined)

    This is either a bug in Construct 2 or a problem in a third party plugin or behavior - please report it to the developer!

    --

    Still don't know if it's just my game.. will keep exploring...

  • Your latest error:

    Uncaught TypeError: Cannot call method 'loadTexture' of nullhttp://localhost:50000/Particles_plugin.js, line 70 (col undefined)

    It mentions the particles plugin :P

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I know, it doesn't crash in the version before I added the spritefont.

    And only if in IE or with webGL switched off.

    Edit, actually that may be it, i added a particle to the capx above, and turned off webgl, and it crashed.

  • All issues in this thread should be fixed in the next build.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)