diff --git a/src/mac/carbon/font.cpp b/src/mac/carbon/font.cpp index e5ebd6dc39..d069f3c89e 100644 --- a/src/mac/carbon/font.cpp +++ b/src/mac/carbon/font.cpp @@ -23,6 +23,7 @@ #include "wx/fontutil.h" #include "wx/graphics.h" +#include "wx/settings.h" #include "wx/mac/uma.h" @@ -209,7 +210,7 @@ void wxFontRefData::Init(int pointSize, wxFontEncoding encoding) { m_style = style; - m_pointSize = pointSize; + m_pointSize = (pointSize == -1) ? wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT).GetPointSize() : pointSize; m_family = family; m_style = style; m_weight = weight;