Ticket #9907 (closed enhancement: fixed)
Add font strikethrough support for (with patch for wxMSW)
|Reported by:||ConfusedSushi||Owned by:|
|Keywords:||wxFont strikethrough MSW GTK||Cc:|
The documentation says there is a flag for setting a striked font.
But passing the flag to wxFont::New has currently no effect.
A patch is attached which implements this feature for MSW.
Also all small test application is attached in fonttest.cpp.
The following public methods have been added/changed:
wxFont::wxFont(int pointSize, wxFontFamily family, int flags, const wxString& face, wxFontEncoding encoding)
`static wxFont * New(const wxSize& pixelSize, wxFontFamily
family, int flags = wxFONTFLAG_DEFAULT, const wxString& faceName =
"", wxFontEncoding encoding = wxFONTENCODING_DEFAULT)`
Please note that SetStrikethrough and GetStrikethrough are pure virtual and may should be removed to get a usable source on platforms other than MSW.
I would be happy to see that in your next release.
Please let me know if you have any suggestions.