-
-
Notifications
You must be signed in to change notification settings - Fork 757
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple Line Breaks & Detecting Rollover #370
Comments
It seems Jimp is very common with people using Discord.js. To address the issue here you're placing the test in an absolute location. It doesn't know there is text already there as it is now literally pixels. |
That makes sense, but would it be possible to have something that, say, detected how long the text would be (in pixels), and then rollover if a word/letter goes past the specified size? |
IT does do that, hence the rollover in the first place. You're defining the position of the second text with an X value, and if it decided arbitrarily to put something NOT where you said to put it, it's unreliable. |
(close this please) |
When I was using the module, and I put a single line of text, it did not roll over and instead went off the side of the image. |
@FireController1847 can you provide an example of putting all the text in one line and it going off the screen? Line wrapping seems to be working in your above example. |
Closing:
|
apologies for not responding, honestly it's been so long I forgot about the issue and I'm not even attempting this anymore lol |
I have an issue with the text wrapping not still working with latest jimp version. I have an open issue here, |
When creating a Jimp and adding text, I want to add multiple lines like so:
The issue is, when text 1 wraps, it overlaps with text 2. Is it possible to detect this at all? I've tried inserting line-breaks into the first text but that doesn't seem to work.
Here's an example:
In the example above, the "ABCDEFGHIJKLMNOP" overlaps the text 2 as seen in the result:
![](https://camo.githubusercontent.com/068b8fa326808b0248eb17e7f9f80c14101952f063719b3e57e375cff7c3f0d0/68747470733a2f2f63646e2e646973636f72646170702e636f6d2f6174746163686d656e74732f3331383932363433323039393130363831372f3338353636383133363139373638353235382f66696c652e6a7067)
I've pulled this off using Node.js
v9.2.0
using npm5.5.1
. I don't know any other languages so.. that's all I can give you.The text was updated successfully, but these errors were encountered: