Dialogue text alignment: justify?

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
User avatar
chesarty
Regular
Posts: 116
Joined: Sat Aug 25, 2018 3:07 am
Completed: 0
Contact:

Dialogue text alignment: justify?

#1 Post by chesarty » Tue Aug 23, 2022 7:24 pm

Hey there, is there a way in Ren'Py to make the dislogue text alignment "justified" (text aligned with both margins)?

User avatar
laure44
Regular
Posts: 60
Joined: Mon Mar 08, 2021 10:55 pm
Projects: Arkan'sTower, Gemshine Lorelei!
Location: France
Contact:

Re: Dialogue text alignment: justify?

#2 Post by laure44 » Tue Aug 23, 2022 7:34 pm

You can use the justify property.
https://www.renpy.org/doc/html/style_pr ... ty-justify

You can use this inside of style say_dialogue in screens.rpy

Code: Select all

style say_dialogue:
    justify True

User avatar
chesarty
Regular
Posts: 116
Joined: Sat Aug 25, 2018 3:07 am
Completed: 0
Contact:

Re: Dialogue text alignment: justify?

#3 Post by chesarty » Tue Aug 23, 2022 8:04 pm

laure44 wrote:
Tue Aug 23, 2022 7:34 pm
You can use the justify property.
https://www.renpy.org/doc/html/style_pr ... ty-justify

You can use this inside of style say_dialogue in screens.rpy

Code: Select all

style say_dialogue:
    justify True
Oh, didn't realize it was that simple! Thanks! :)

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Majestic-12 [Bot]