X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/514401354c0f3a3c384535980de05b1c91d78986..c98826242f849bc2ab888c33f547c59dcf8db2fa:/src/x11/font.cpp diff --git a/src/x11/font.cpp b/src/x11/font.cpp index c5b726de0e..0c8dc0307d 100644 --- a/src/x11/font.cpp +++ b/src/x11/font.cpp @@ -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: