Strange text display in 13.8

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
User avatar
VenusEclipse
Veteran
Posts: 348
Joined: Fri Mar 13, 2009 5:26 pm
Completed: Princess of Ruin, Frozen Essence, Heartstring Bugs
Organization: Unbroken Hours
Tumblr: unbrokenhours
Deviantart: venus-eclipse
Location: Canada
Contact:

Strange text display in 13.8

#1 Post by VenusEclipse » Sun Jan 29, 2012 2:01 pm

I don't know what causes this but maybe it's the type of font I'm using. Did something happen to the text-display-something in the newest RenPy? It's fine in RenPy version 6.12.

This doesn't happen all the time but it happens maybe during 5-10% of dialogue. The white specks below the first line is bits of the next line of text.

I don't know if there is a fix but my other option is to find a new font and then adjust all the lines in case they go outside the text box, or to reuse 6.12 just to keep this font.

I'm also bringing it up in case the new RenPy doesn't support other fonts.

The font I'm using is here.
http://www.dafont.com/kurzetstype.font

Oh, and ignore the red error at the top of the screenshot.
Attachments
screenshot0003.png

User avatar
PyTom
Ren'Py Creator
Posts: 15893
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: Strange text display in 13.8

#2 Post by PyTom » Mon Jan 30, 2012 6:19 pm

There was a major change to the way 6.13 handled text. In previous versions, Ren'Py would draw the text one character at a time, sending a new texture to the video card each time. This prevented future characters from showing up, but lead to some problem with peformance when displaying big screens of text. (IIRC, there was one game that had a paragraph long enough that you'd see a visible slowdown while typing out that paragraph.)

6.13 draws each block of text once, sends it to the video card, and then blits one line at a time to the card. This is way faster, but if the font is made such that lines overlap, you can get the effect you see above.

While we can't do anything in the case where two lines actually overlap, it looks like in your case, we're dealing with an overlap in the whitespace between lines. I included a setting in Ren'Py for just this case. You'll want to write:

Code: Select all

init python:
    style.default.line_overlap_split = -1
Adjust the number to allocate more of the overlap to the first line, decrease it to allocate more to the second - you should see a change with each adjustment, and hopefully you'll be able to find a setting that is pleasing to you. You can also increase line_leading or line_spacing, but those will increase the vertical spacing of your text.

Hope this helps.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
VenusEclipse
Veteran
Posts: 348
Joined: Fri Mar 13, 2009 5:26 pm
Completed: Princess of Ruin, Frozen Essence, Heartstring Bugs
Organization: Unbroken Hours
Tumblr: unbrokenhours
Deviantart: venus-eclipse
Location: Canada
Contact:

Re: Strange text display in 13.8

#3 Post by VenusEclipse » Mon Jan 30, 2012 7:17 pm

The line_overlap_split on it's own cuts off the bottom of the g's, and y's. I tried all of the three suggestions you mentioned and the adjustments work. Thank you. =)

User avatar
PyTom
Ren'Py Creator
Posts: 15893
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: Strange text display in 13.8

#4 Post by PyTom » Mon Jan 30, 2012 10:40 pm

You might be able to find a setting for it where it works. But if you can live with the spacing, then bully for you.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: No registered users