]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/fontutil.cpp
Use DeafultAttributes instead of hard coded defaults
[wxWidgets.git] / src / unix / fontutil.cpp
index 09c673e0c225ac4bf17f4544698c6cfc4fef3d4b..79f36b31dda4c5d712a2f463931073eee97ceb30 100644 (file)
@@ -57,6 +57,20 @@ void wxNativeFontInfo::Init()
     description = NULL;
 }
 
+wxNativeFontInfo::wxNativeFontInfo(const wxNativeFontInfo& info)
+{
+    if (info.description)
+        description = pango_font_description_copy(info.description);
+    else
+        description = NULL;            
+}
+
+wxNativeFontInfo::~wxNativeFontInfo()
+{
+    if (description)
+        pango_font_description_free(description);
+}
+
 int wxNativeFontInfo::GetPointSize() const
 {
     return pango_font_description_get_size( description ) / PANGO_SCALE;