font is cut off

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
Quilford
Regular
Posts: 37
Joined: Sun Dec 26, 2010 2:59 am
Contact:

font is cut off

#1 Post by Quilford »

The lower part of a certain pixel font that I am using in Ren'Py is being cut off, like so:

Image

Can I rectify this? How?

Changing line_spacing does nothing.

User avatar
jack_norton
Lemma-Class Veteran
Posts: 4087
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: font is cut off

#2 Post by jack_norton »

I have a similar problem but only with the latest version (before was working ok). If you want you can download renpy 6.12 and check if the same font works fine, in this case is a bug of the new renpy and you only need to wait for pytom to fix it :)
follow me on Image Image Image
computer games

User avatar
Camille
Eileen-Class Veteran
Posts: 1227
Joined: Sat Apr 23, 2011 2:43 pm
Completed: Please see http://trash.moe
Projects: the head well lost
Organization: L3
Tumblr: narihira
Deviantart: crownwaltz
itch: lore
Contact:

Re: font is cut off

#3 Post by Camille »

Have you tried also changing line_leading? Sometimes this happened in my game, but changing line_spacing helped... D:

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

#4 Post by PyTom »

If you can, please post the font you're using, so I can analyze it.
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

Quilford
Regular
Posts: 37
Joined: Sun Dec 26, 2010 2:59 am
Contact:

Re: font is cut off

#5 Post by Quilford »

line_leading does something really weird in that the first line displays as in the screenshot above, but as the line below it rolls in (from slow_cps), the bottom half of the first line is revealed.

This is the font: http://www.mediafire.com/?00dm0f2rha5ru28

Quilford
Regular
Posts: 37
Joined: Sun Dec 26, 2010 2:59 am
Contact:

Re: font is cut off

#6 Post by Quilford »

PyTom, did you get around to this?

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

#7 Post by PyTom »

I did.

The problem is with the font. According to the font, it has a positive descender - which means that instead of descending below the baseline, characters like j and p end 7 pixels above it. That's nonsensical.

Since I don't think any real fonts would have this problem, I went ahead and added a check for this problem. This isn't a bug fix, but rather a kludge that improves compatibility. The upshot is that 6.13.1 will be able to read this, eventually.
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: 4087
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: font is cut off

#8 Post by jack_norton »

It's the same also for my font? I don't think so since in previous version it was showing OK (so don't think is a problem with the font itself).
follow me on Image Image Image
computer games

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

#9 Post by PyTom »

jack, your font problem was an actual bug triggered by negative line_spacing. (In fact, several bugs.) Tonight's pre-release will have a fix for it.
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: 4087
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: font is cut off

#10 Post by jack_norton »

Awesome job :)
follow me on Image Image Image
computer games

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot]