iOS/buildlibs/armv7/allegro-4.4.2/addons/allegrogl/src/fontconv.c
/* agl_text_length:
 * font vtable entry
 * Returns the length, in pixels, of a string as rendered in a font.
 */
font vtable entry
Returns the length, in pixels, of a string as rendered in a font.
font vtable entry Returns the length in pixels of a string as rendered in a font .
static int agl_text_length(const FONT *f, const char *str) {
	int ch = 0;
	float l = 0;
	const char *p = str;
	ASSERT(f);
	ASSERT(str);
	while ( (ch = ugetxc(&p)) ) {
		l += agl_char_length_fractional(f, ch);
	}
	return iroundf(l);
}
static int agl_text_length ( const FONT * f , const char * str ) { int ch = 0 ; float l = 0 ; const char * p = str ; ASSERT ( f ) ; ASSERT ( str ) ; while ( ( ch = ugetxc ( & p ) ) ) { l += agl_char_length_fractional ( f , ch ) ; } return iroundf ( l ) ; }
agl_text_length:
 font vtable entry
 Returns the length, in pixels, of a string as rendered in a font.
agl_text_length : font vtable entry Returns the length in pixels of a string as rendered in a font .