Text Plugin Wrapping (Asian language support)

0 favourites
  • 8 posts
From the Asset Store
Comprehensive localization solution for Construct 3 projects, no addons required!
  • Not sure if this would be classified as a bug, but thought it worth mentioning. Most standard form text controls in other programs will wrap asian language text when it hits the end of a text label width, but in Construct 2, the text just continues off the side, this happens because pictographic languages like Chinese/Japanese do not employ spaces between words.

    example picture:

    <img src="http://dl.dropbox.com/u/12667027/Construct%202/TextWrap%20Bug/wrapbug.png" border="0" />

    While I'm obviously hoping that this will be patched sometime in the future, is there something I can do in the meantime to get around this?


    -- cacotigon

  • I think you can count the number of characters and every X insert a newline char.

    I can't figure a way on how to use Text.width, but maybe someone has an idea...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Cassianno: yeah, that's kind of my last resort, since I've got several text controls all with different font sizes. :)

  • Ack, it gets even worse, even though Chinese fonts are typically a constant fixed-width per character, a lot of my text mixes Chinese with English words, which unfortunately vary for width depending on the letter, so not even counting would work in this case(unless I tried something bat-sh## crazy like figuring out the width per character per font on a one-on-one basis).

  • Try this plugin. This text plugin can wrap unicode character.

    (Well, it can do "typing". I might post it to "plugin thread" latter)

  • rexrainbow: You are the bomb-diggedy. As far as I can tell, it works flawlessly. You should definitely post this up on the plugins sticky. You may even want to post this plugin as an attach to this bug since it might be related, and could help scirra. Thanks again!

    Text Border Bug Post

  • cacotigon

    I had updated and posted this plugin, please update it again.

  • Ah, I never got round to adding character text wrapping to the text object. I'll try get that sorted.

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