font.c
/* init font system, for game engine startup */
init font system, for game engine startup
init font system for game engine startup
unsigned int fontInit(void) {
    ALLEGRO_BITMAP *bmp = NULL;
    al_init_font_addon();
    al_init_ttf_addon();
    font = al_load_ttf_font(FONTNAME, 8, 0 );
   if (!font){
      fprintf(stderr, "Could not load 'PressStart2P.ttf'.\n");
      return false;
   }
   al_destroy_bitmap(bmp);
   return true;
}
unsigned int fontInit ( void ) { ALLEGRO_BITMAP * bmp = NULL ; al_init_font_addon ( ) ; al_init_ttf_addon ( ) ; font = al_load_ttf_font ( FONTNAME , 8 , 0 ) ; if ( ! font ) { fprintf ( stderr , " \n " ) ; return false ; } al_destroy_bitmap ( bmp ) ; return true ; }
init font system, for game engine startup
init font system for game engine startup
/* return 1 on font init, 0 on fail */ /* fail if load didn't work */