iOS/buildlibs/armv7/allegro-4.4.2/addons/allegrogl/src/fontconv.c
/* agl_get_font_ranges:
 * font vtable entry
 * Returns the number of character ranges in a font, or -1 if that information
 *   is not available.
 */
font vtable entry
Returns the number of character ranges in a font, or -1 if that information
is not available.
font vtable entry Returns the number of character ranges in a font or - 1 if that information is not available .
static int agl_get_font_ranges(FONT *f) {
	FONT_AGL_DATA *fad;
	int ranges = 0;
	if (!f)
		return 0;
	fad = (FONT_AGL_DATA*)(f->data);
	while (fad) {
		FONT_AGL_DATA *next = fad->next;
		ranges++;
		if (!next)
			return ranges;
		fad = next;
	}
	return -1;
}
static int agl_get_font_ranges ( FONT * f ) { FONT_AGL_DATA * fad ; int ranges = 0 ; if ( ! f ) return 0 ; fad = ( FONT_AGL_DATA * ) ( f -> data ) ; while ( fad ) { FONT_AGL_DATA * next = fad -> next ; ranges ++ ; if ( ! next ) return ranges ; fad = next ; } return -1 ; }
agl_get_font_ranges:
 font vtable entry
 Returns the number of character ranges in a font, or -1 if that information
   is not available.
agl_get_font_ranges : font vtable entry Returns the number of character ranges in a font or - 1 if that information is not available .