iOS/buildlibs/armv7/allegro-4.4.2/addons/allegrogl/src/fontconv.c
/* agl_get_font_range_begin:
 * font vtable entry
 * Get first character for font.
 */
font vtable entry
Get first character for font.
font vtable entry Get first character for font .
static int agl_get_font_range_begin(FONT *f, int range) {
	FONT_AGL_DATA *fad;
	int n = 0;
	if (!f || !f->data)
		return -1;
	if (range < 0)
		range = 0;
	fad = (FONT_AGL_DATA*)(f->data);
	while (fad && n <= range) {
		FONT_AGL_DATA *next = fad->next;
		if (!next || range == n)
			return fad->start;
		fad = next;
		n++;
	}
	return -1;
}
static int agl_get_font_range_begin ( FONT * f , int range ) { FONT_AGL_DATA * fad ; int n = 0 ; if ( ! f || ! f -> data ) return -1 ; if ( range < 0 ) range = 0 ; fad = ( FONT_AGL_DATA * ) ( f -> data ) ; while ( fad && n <= range ) { FONT_AGL_DATA * next = fad -> next ; if ( ! next || range == n ) return fad -> start ; fad = next ; n ++ ; } return -1 ; }
agl_get_font_range_begin:
 font vtable entry
 Get first character for font.
agl_get_font_range_begin : font vtable entry Get first character for font .