Page 1 of 1

Strange text display in 13.8

Posted: Sun Jan 29, 2012 2:01 pm
by VenusEclipse
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.

Re: Strange text display in 13.8

Posted: Mon Jan 30, 2012 6:19 pm
by PyTom
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.

Re: Strange text display in 13.8

Posted: Mon Jan 30, 2012 7:17 pm
by VenusEclipse
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. =)

Re: Strange text display in 13.8

Posted: Mon Jan 30, 2012 10:40 pm
by PyTom
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.