Hi,
I have searched the archive and can't find this one
I am attempting to change the Font in a DC (PrinterDC) - but first I want to
see what the current point size is, so I am doing:
font = dc.GetFont()
currentPointSize = font.GetPointSize()
The last line fails with:
09:53:17: Debug: c:\PROJECTS\wx\src\msw\font.cpp(859): assert
"wxAssertFailure" failed: invalid font
Performing a "print font" gives:
<wxPython.fonts.wxFontPtr instance; proxy of C++ wxFont instance at
_d28ff0_wxFont_p
From this I assume that a wxFontPtr is not the same as a wxFont
- so how
do I "dereference" the pointer or otherwise get access to the point size?
Thanks
Peter
Peter Milliken
Software Engineer
ResMed
Phone: +61 2 9886-5059
Fax: +61 2 9878-5564
Warning: Copyright ResMed. Where the contents of this email and/or attachment includes materials prepared by ResMed, the use of those materials is subject exclusively to the conditions of engagement between ResMed and the intended recipient.
This communication is confidential and may contain legally privileged information. By the use of email over the Internet or other communication systems, ResMed is not waiving either confidentiality of, or legal privilege in,the content of the email and of any attachments.
If the recipient of this message is not the intended addressee, please call ResMed immediately on +61 2 9886 5000 Sydney, Australia.