Satty icon indicating copy to clipboard operation
Satty copied to clipboard

When the window is wider than the image, text is not wrapped properly in preview

Open RobertMueller2 opened this issue 3 months ago • 3 comments

Observed in #283.

Without further investigation, I assume it's here, width is probably the window width rather than the image width.

https://github.com/gabm/Satty/blob/6c6836f1f9a45f4b05d6167be0c34a299e630189/src/tools/text.rs#L117

Image

When saving the file, the text is properly wrapped where expected, but the bug does break WYSIWYG.

RobertMueller2 avatar Oct 04 '25 15:10 RobertMueller2

I can no longer reproduce this in d5de7f811c6ddfccdf2cd5566b037b0cd6902991, although the wrapping does seem "weird", can't quite put my finger on it right now.

I'd say maybe this is related to pulling in femtovg updates, but it doesn't exactly match the timing of when I opened this issue.

Re-investigate after #307.

RobertMueller2 avatar Oct 31 '25 05:10 RobertMueller2

still happening.

RobertMueller2 avatar Nov 07 '25 06:11 RobertMueller2

Overlap with #337.

This may actually be a feature. However the wrapping on screen needs to match what ends up in the image.

RobertMueller2 avatar Nov 13 '25 16:11 RobertMueller2