Lemma Soft Forums

Supporting creators of visual novels and story-based games since 2003.


Visit our new games list, blog aggregator, IRC, and wiki.
Activation problem? Email [email protected]
It is currently Fri May 24, 2013 5:03 am

All times are UTC - 5 hours [ DST ]


Forum rules


Ren'Py support questions should go here. This forum is for discussing changes to Ren'Py itself.



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sat Jan 21, 2012 11:10 am 
Newbie

Joined: Thu Nov 04, 2010 6:28 am
Posts: 20
I'm working with justified text. Using a -0.2 kerning, the result is somewhat corrupted. See the attached pictures: Fig. 1 uses the default kerning. Fig. 2 uses a -0.2 kerning. If I don't justify text, everything is fine.

Fig. 1 [default kerning]
Image

Fig. 2 [-0.2 kerning]
Image


Top
 Profile Send private message  
 
PostPosted: Sat Jan 21, 2012 11:20 am 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10778
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
Just to confirm, is this with 6.13.8?

Also, is this actually wrong? Ren'Py's justification ensures that all lines are the same length, but it doesn't pad them out to any particular width. (Which might be something to add, come to think of it.) It looks like what's happening here is that the reduced kerning allowed Ren'Py to create a longer longest line, and then everything else is being laid out properly.

Consider supplying an xmaximum to the text, so that it can't overflow.

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004; Code > Drama
(When was the last time you backed up your game?)
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming" - Theodore Roosevelt


Top
 Profile Send private message  
 
PostPosted: Sat Jan 21, 2012 1:54 pm 
Newbie

Joined: Thu Nov 04, 2010 6:28 am
Posts: 20
PyTom wrote:
Just to confirm, is this with 6.13.8?

Also, is this actually wrong? Ren'Py's justification ensures that all lines are the same length, but it doesn't pad them out to any particular width. (Which might be something to add, come to think of it.) It looks like what's happening here is that the reduced kerning allowed Ren'Py to create a longer longest line, and then everything else is being laid out properly.

Consider supplying an xmaximum to the text, so that it can't overflow.


I'm using 6.13.8.1675.
Also, the containing frame is supplying xmaximum and xminimum (438 pixels), but I tried supplying an xmaximum to the text itself (the same 438 pixels). The result is the same: the text overflows (more than 500 pixels).

EDIT: it seems to me that the modified kerning is forcing Ren'Py to miscalculate the width. an xmaximum of 438 renders to 500+, but if I reduce it to 380, the result is what I was trying to obtain. There seems to be an offset.


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Protected by Anti-Spam ACP
Powered by phpBB® Forum Software © phpBB Group