- add("default_size", &Font::default_size);
- add("ascent", &Font::ascent);
- add("descent", &Font::descent);
- add("texture", &Loader::texture);
- add("glyph", &Loader::glyph);
+ init();
+}
+
+Font::Loader::Loader(Font &f, Collection &c):
+ font(f),
+ coll(&c)
+{
+ init();
+}
+
+DataFile::Collection &Font::Loader::get_collection()
+{
+ if(!coll)
+ throw InvalidState("No collection");
+ return *coll;