-void Resources::Loader::font(const string &fn)
-{
- RefPtr<GL::Font> fnt=new GL::Font;
- DataFile::load(*fnt, fn);
-
- res.fonts.insert(FontMap::value_type(fn.substr(0, fn.rfind('.')), fnt.get()));
- if(!res.default_font)
- res.default_font=fnt.get();
- fnt.release();
-}