Toolkit/FontEngine.cpp
// this is for monoline text, does not take into consideration \n character yet
this is for monoline text, does not take into consideration \n character yet
this is for monoline text does not take into consideration \ n character yet
unsigned int FontEngine::getstringheight( char *str )
{
    int length = (int) strlen( str );
    int posy = 0;
    for(int i=0; i< length; i++)
    {
        if( currentfont->Font[str[i]]->charheight > posy)
            posy = currentfont->Font[str[i]]->charheight;
    }
    return posy;
}
unsigned int FontEngine :: getstringheight ( char * str ) { int length = ( int ) strlen ( str ) ; int posy = 0 ; for ( int i = 0 ; i < length ; i ++ ) { if ( currentfont -> Font [ str [ i ] ] -> charheight > posy ) posy = currentfont -> Font [ str [ i ] ] -> charheight ; } return posy ; }
this is for monoline text, does not take into consideration \n character yet
this is for monoline text does not take into consideration \ n character yet