canvas-text-wrapper icon indicating copy to clipboard operation
canvas-text-wrapper copied to clipboard

Split canvas text into lines on specified rule with optional alignment, padding, and more. Supports HDPI screens.

Results 8 canvas-text-wrapper issues
Sort by recently updated
recently updated
newest added

Can be convenient to place text on an existing canvas See namniak/canvas-text-wrapper#28 / #28

line breaking improve: ```js 'abc 中文ぢゃ放つびカタカナ조선말'.split(/(\p{sc=Han}|\p{sc=Katakana}|\p{sc=Hiragana}|\p{sc=Hang}|\p{gc=Punctuation})|\s+/gu) ```

Hello, thank you for the module! It has been useful! Though i find it important to make the method return some properties, like for instance the number of lines, which...

As the title says, the index.d.ts specifies the CanvasTextWrapper method to return void but due to other recent changes it actually returns lines (string[]).

This library looks really cool, however there doesn't appear to be a way to pass in the x, y and maxWidth properties so that I can place the text in...

hello, I have a function that adds an ellipsis (...) at the end of my canvas text. I was wondering, how would one go about adding that function to your...

When a word is wrapped without any spaces in between, all line breaks do not work. ![image](https://github.com/namniak/canvas-text-wrapper/assets/49355293/462d5f49-9201-48df-a5dc-77c68705f65f) But it works if there are spaces. ![image](https://github.com/namniak/canvas-text-wrapper/assets/49355293/e72e0c56-c8c6-4c7f-99ee-9152b7e8a423)

when you try to put text on a image it removes the image and puts only text. I encountered this issue only in mobile devices, works fine on my pc....