1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/os2/gdiobj.cpp
3 // Purpose: wxGDIObject class
8 // Copyright: (c) AUTHOR
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #include "wx/wxprec.h"
14 #include "wx/gdiobj.h"
18 #include "wx/gdicmn.h"
21 class wxStockGDIPM
: public wxStockGDI
26 virtual const wxFont
* GetFont(Item item
);
29 typedef wxStockGDI super
;
32 static wxStockGDIPM gs_wxStockGDIPM_instance
;
34 wxStockGDIPM::wxStockGDIPM()
36 // Override default instance
40 const wxFont
* wxStockGDIPM::GetFont(Item item
)
42 wxFont
* font
= wx_static_cast(wxFont
*, ms_stockObject
[item
]);
45 const int fontSize
= 12;
49 font
= new wxFont(fontSize
, wxMODERN
, wxNORMAL
, wxBOLD
);
52 font
= new wxFont(fontSize
- 4, wxSWISS
, wxNORMAL
, wxNORMAL
);
55 font
= wx_const_cast(wxFont
*, super::GetFont(item
));
58 ms_stockObject
[item
] = font
;