Is there anyway to get wxFont from wxGraphicsFont??

19 views
Skip to first unread message

Chiyu Wang

unread,
Oct 11, 2012, 4:37:12 AM10/11/12
to wx-u...@googlegroups.com
I am replacing wxDC with wxGraphicsContext, and I like to keep my code as much as possible. Then I can see that the type of font is changed, so I wonder if it is possible to get wxFont from wxGraphicsContext.

Vadim Zeitlin

unread,
Oct 11, 2012, 8:38:35 AM10/11/12
to wx-u...@googlegroups.com
On Thu, 11 Oct 2012 01:37:12 -0700 (PDT) Chiyu Wang wrote:

CW> I am replacing wxDC with wxGraphicsContext, and I like to keep my code as
CW> much as possible. Then I can see that the type of font is changed, so I
CW> wonder if it is possible to get wxFont from wxGraphicsContext.

I don't think so, it only works in one direction, i.e. you can create
wxGraphicsFont from wxFont but not vice versa.

Regards,
VZ

--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Reply all
Reply to author
Forward
0 new messages