X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/af0531a5a8d930312bfbdb7e9c0703f95ea0b55b..9c112555198f51fcec71106530cddba95a17f3dc:/contrib/src/stc/stc.cpp?ds=sidebyside diff --git a/contrib/src/stc/stc.cpp b/contrib/src/stc/stc.cpp index b003480d48..86a9690efb 100644 --- a/contrib/src/stc/stc.cpp +++ b/contrib/src/stc/stc.cpp @@ -2529,7 +2529,7 @@ void wxStyledTextCtrl::StyleSetFont(int styleNum, wxFont& font) { bool bold = font.GetWeight() == wxBOLD; bool italic = font.GetStyle() != wxNORMAL; bool under = font.GetUnderlined(); - wxFontEncoding encoding = font.GetDefaultEncoding(); + wxFontEncoding encoding = font.GetEncoding(); StyleSetFontAttr(styleNum, size, faceName, bold, italic, under, encoding); }