[Plib-users] bug in fnt?
Brought to you by:
sjbaker
From: Albin H. <gat...@ti...> - 2001-12-12 21:34:06
|
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). Or am I just missing something (I wouldn't be suprised). --- Albin. |