X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c45f5ae8a352541c81083de24873965631529685..b33e98f0bdeb53e0eaf63cd41de4e219e7d19ff9:/src/unix/fontutil.cpp diff --git a/src/unix/fontutil.cpp b/src/unix/fontutil.cpp index bdef942006..4e027ae7d7 100644 --- a/src/unix/fontutil.cpp +++ b/src/unix/fontutil.cpp @@ -276,6 +276,10 @@ void wxNativeFontInfo::SetUnderlined(bool WXUNUSED(underlined)) bool wxNativeFontInfo::SetFaceName(const wxString& facename) { pango_font_description_set_family(description, wxPANGO_CONV(facename)); + + // we return true because Pango doesn't tell us if the call failed or not; + // instead on wxGTK wxFont::SetFaceName() will call wxFontBase::SetFaceName() + // which does the check return true; }