]> git.saurik.com Git - wxWidgets.git/commitdiff
Account for PANGO_WEIGHT_SEMIBOLD not being available on older Pango
authorJulian Smart <julian@anthemion.co.uk>
Sat, 4 Nov 2006 17:09:48 +0000 (17:09 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sat, 4 Nov 2006 17:09:48 +0000 (17:09 +0000)
installations

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43041 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/x11/font.cpp

index c5b726de0ee426260cb3b0d7892883098aa96a00..0c8dc0307db930e73338a695b89f77dc83b7dd46 100644 (file)
@@ -243,6 +243,9 @@ void wxFontRefData::InitFromNative()
             break;
     }
 
+// Not defined in some Pango versions
+#define wxPANGO_WEIGHT_SEMIBOLD 600
+
     switch (pango_font_description_get_weight( desc ))
     {
         case PANGO_WEIGHT_ULTRALIGHT:
@@ -258,7 +261,7 @@ void wxFontRefData::InitFromNative()
             m_weight = wxFONTWEIGHT_NORMAL;
             break;
 
-        case PANGO_WEIGHT_SEMIBOLD:
+        case wxPANGO_WEIGHT_SEMIBOLD:
         case PANGO_WEIGHT_BOLD:
         case PANGO_WEIGHT_ULTRABOLD:
         case PANGO_WEIGHT_HEAVY: