Re: [AD] non-static read-only font

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Tue, 25 Jan 2000, Sven Sandberg wrote:
> Hi!
> 
> I am writing an addon library that needs to access the default 8x8 font, no
> matter if the user changes `font' to point to his own font (as the docs
> about `font' suggest you can do to change the look of the gui).

Maybe you could require the user to give you the original font manually.
Something along the lines of:

void initialization(void)
{
  allegro_init();
  install_timer();
  install_keyboard();
  install_sven's_addon(font);
}

That would be more similar to allegro's install_allegro (...) function.

-- 
Grzegorz Adam Hankiewicz - gradha@xxxxxxxxxx
Gogosoftware - http://welcome.to/gogosoftware/

 Windows NT - Naturally Terrible.



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/