Re: [Plib-users] bug in fnt?
Brought to you by:
sjbaker
|
From: Steve B. <sjb...@ai...> - 2001-12-12 23:49:45
|
Albin Holmgren wrote:
>
> in void fntTexFont::getBBox(...) (fnt.cxx)
>
> the following code appers:
>
> if ( *s == '\n' )
> {
> r = h_pos = 0.0f ;
> v_pos -= 1.333f ;
> s++ ;
> continue ;
> }
>
> i *think* that it should read
>
> if ( *s == '\n' )
> {
> h_pos = 0.0f ; // <- do not reset r
> v_pos -= 1.333f ;
> s++ ;
> continue ;
> }
>
> I'm getting correct results after this manipulation (otherwise the width
> returned is that of the last line).
Oooh! That looks like a good catch. I think this explains some problems
I had when writing the file selector box.
I've committed the change into CVS.
*MANY* thanks for tracking this nasty little problem down!
----------------------------- Steve Baker -------------------------------
Mail : <sjb...@ai...> WorkMail: <sj...@li...>
URLs : http://www.sjbaker.org
http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net
http://prettypoly.sf.net http://freeglut.sf.net
http://toobular.sf.net http://lodestone.sf.net
|