]> git.tdb.fi Git - libs/gl.git/blobdiff - source/font.cpp
Initialize members of Font::Glyph
[libs/gl.git] / source / font.cpp
index 3fd24d8ea0ebde029e262d137dcfaf509b0db5ee..fba9f331fb7e7cbcceaaf04e21eca8215f89aa46 100644 (file)
@@ -140,6 +140,20 @@ unsigned Font::get_ligature(unsigned code, unsigned next) const
 }
 
 
+Font::Glyph::Glyph():
+       code(0),
+       x1(0),
+       y1(0),
+       x2(1),
+       y2(1),
+       w(1),
+       h(1),
+       off_x(0),
+       off_y(0),
+       advance(1)
+{ }
+
+
 Font::Loader::Loader(Font &f):
        DataFile::CollectionObjectLoader<Font>(f, 0)
 {