+ RefPtr<Texture2D> tex = new Texture2D;
+ load_sub(*tex);
+ obj.texture = tex;
+}
+
+void Font::Loader::texture_ref(const string &name)
+{
+ obj.texture = &get_collection().get<Texture2D>(name);
+ obj.texture.keep();
+}
+
+
+Font::Glyph::Loader::Loader(Glyph &g):
+ DataFile::ObjectLoader<Glyph>(g)
+{
+ add("texcoords", &Loader::texcoords);
+ add("size", &Glyph::w, &Glyph::h);
+ add("offset", &Glyph::off_x, &Glyph::off_y);
+ add("advance", &Glyph::advance);