Page 1 of 1

italics font characters cut off

Posted: Mon Sep 24, 2012 9:21 am
by jack_norton
Image
as you can see the character in the beginning of each line is truncated, while the one at the end of it are fine. I checked and the "bug" was present also in the old version, probably I didn't notice it because rarely used italics font.
The font is italics on the TTF, so not using any {i} tag. I also tried with printing simple text (the screenshot above is from a NVL screen) and same problem. I checked 2-3 different italics fonts and got this behavior so I don't think it's a problem related to the font... ?

Re: italics font characters cut off

Posted: Mon Sep 24, 2012 10:12 am
by jack_norton
I also just tried using BMFont (so not TTF, but rendered font) and the same bug happens, so it seems really that somehow Ren'Py cuts the first pixels of the characters on start of each new line.

The font I used is this one (from google webfonts):

[The extension ttf has been deactivated and can no longer be displayed.]


Re: italics font characters cut off

Posted: Mon Sep 24, 2012 3:01 pm
by PyTom
Tracking this here:

https://github.com/renpy/renpy/issues/34

I'm not sure if this is in the font data, or in Ren'Py. Until I figure it out, I recommend setting:

Code: Select all

init python:
    style.whatever.first_indent = 10
    style.whatever.rest_indent = 10
Indenting the text evenly will add some extra space, which might help things.

Re: italics font characters cut off

Posted: Mon Sep 24, 2012 3:47 pm
by jack_norton
Thanks, that fixed it! :) I really think is something in Ren'Py, since I have tried several other fonts with same results:

Re: italics font characters cut off

Posted: Sat May 18, 2013 10:53 am
by peterah
What do you think the best font for a beginner would be? Or am I overthinking this? I just don't run to run into any issues early on