italics font characters cut off

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
jack_norton
Lemma-Class Veteran
Posts: 4085
Joined: Mon Jul 21, 2008 5:41 pm
Completed: Too many! See my homepage
Projects: A lot! See www.winterwolves.com
Tumblr: winterwolvesgames
Contact:

italics font characters cut off

#1 Post 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... ?
follow me on Image Image Image
computer games

User avatar
jack_norton
Lemma-Class Veteran
Posts: 4085
Joined: Mon Jul 21, 2008 5:41 pm
Completed: Too many! See my homepage
Projects: A lot! See www.winterwolves.com
Tumblr: winterwolvesgames
Contact:

Re: italics font characters cut off

#2 Post 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.]

follow me on Image Image Image
computer games

User avatar
PyTom
Ren'Py Creator
Posts: 16096
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: italics font characters cut off

#3 Post 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.
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

User avatar
jack_norton
Lemma-Class Veteran
Posts: 4085
Joined: Mon Jul 21, 2008 5:41 pm
Completed: Too many! See my homepage
Projects: A lot! See www.winterwolves.com
Tumblr: winterwolvesgames
Contact:

Re: italics font characters cut off

#4 Post 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:
Attachments

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

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

follow me on Image Image Image
computer games

peterah
Newbie
Posts: 6
Joined: Sat May 18, 2013 10:36 am
Contact:

Re: italics font characters cut off

#5 Post 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

Post Reply

Who is online

Users browsing this forum: No registered users