]> git.tdb.fi Git - libs/gl.git/blobdiff - source/font.cpp
Change some class names
[libs/gl.git] / source / font.cpp
index 6780f5fa8679f2ab73df72902d79e8d729b11a55..54631926e4e1b3ae22da55afff111450fc9719e0 100644 (file)
@@ -15,7 +15,9 @@ namespace GL {
 Font::Font():
        native_size(1),
        ascent(1),
-       descent(0)
+       descent(0),
+       cap_height(1),
+       x_height(0.5)
 { }
 
 // Avoid synthesizing ~RefPtr in files including font.h
@@ -139,11 +141,13 @@ void Font::Loader::init()
 {
        add("native_size", &Font::native_size);
        add("ascent",      &Font::ascent);
+       add("cap_height",  &Font::cap_height);
        add("descent",     &Font::descent);
        add("texture",     &Loader::texture);
        add("texture",     &Loader::texture_ref);
        add("glyph",       &Loader::glyph);
        add("kerning",     &Loader::kerning);
+       add("x_height",    &Font::x_height);
 }
 
 void Font::Loader::glyph(unsigned c)