]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/style.cpp
Make font size a property of Style
[libs/gltk.git] / source / style.cpp
index 0138ec2af1a20f401b262b2b7d1bffefeac2a6eb..50c2e774d5477201502f77ac2e98ad270793ad85 100644 (file)
@@ -7,7 +7,8 @@ namespace Msp {
 namespace GLtk {
 
 Style::Style(Resources &r):
-       font(&r.get_default_font())
+       font(&r.get_default_font()),
+       font_size(font->get_native_size())
 { }
 
 const Part *Style::get_part(const string &name) const