Wrapping text around non-rectangular images

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
Tojaw
Newbie
Posts: 6
Joined: Thu Jan 31, 2019 1:28 pm
Contact:

Wrapping text around non-rectangular images

#1 Post by Tojaw »

How can I wrap text around a non-rectangular image? Any solution is appreciated, may it be Transform or Python. I know it has to be possible because Python is Turing-complete.

Please note that I have a lot of images and one solution for all is the only way I could do it.

And because a picture says more than a thousand words:
2020-06-30 10.56.58.png

I thank everyone who spends their time reading this in advance.

User avatar
PyTom
Ren'Py Creator
Posts: 16093
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Wrapping text around non-rectangular images

#2 Post by PyTom »

Ren'Py basically can't do this in a way that would work - the text layout engine just isn't designed for non-rectangular layouts like this.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Tojaw
Newbie
Posts: 6
Joined: Thu Jan 31, 2019 1:28 pm
Contact:

Re: Wrapping text around non-rectangular images

#3 Post by Tojaw »

Thank you for your help. I'm sure it is somehow possible using Python, but that might be a question I have to ask on StackOverflow. I'll share my solution here, but it might take a while.

Post Reply

Who is online

Users browsing this forum: Google [Bot]