Support » Plugin: Star CloudPRNT for WooCommerce » WordWrap Not Working

  • Resolved Angela2601

    (@angela2601)


    Hi
    I’m finding that the wordwrap function isn’t working – words in product names are still being split if they span more than one line. The only thing I have customised is the font magnification for product items – could this have something to do with it?

Viewing 1 replies (of 1 total)
  • Plugin Contributor lawrenceowen

    (@lawrenceowen)

    Yes, the php wordwrap() function relies on counting characters (it assumes that all characters are the same width – luckily usually true for a POS printer), since using magnification means that the characters are a different size it will completely break any word wrapping.

    I’ve tried to improve this in the code for the next 2.1 release, which is still a way from release but may be better for you if you are working on some heavy modifications, you can find it on GitHub at https://github.com/star-micronics/star-cloudprnt-for-woocommerce.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.