Merge branch 'font-fixes'
Complete support for fractional point sizes and font weights other than light/bold. Also harmonize wxFont API and implementation among all ports (fixing compilation of those of them that were broken by recent changes). See https://github.com/wxWidgets/wxWidgets/pull/919
This commit is contained in:
@@ -248,7 +248,7 @@ void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
|
||||
text->SetBackgroundColour(*wxWHITE);
|
||||
text->SetForegroundColour(*wxBLACK);
|
||||
wxFont font = text->GetFont();
|
||||
font.SetPointSize(2*font.GetPointSize()/3);
|
||||
font.SetFractionalPointSize(2.0*font.GetFractionalPointSize()/3.0);
|
||||
text->SetFont(font);
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user