I'm trying to use wxFont::GetNativeFontInfoDesc() in wxPython and it's
companion wxFont::SetNativeFontInfo() but the latter seems to need a
wxFontInfo object and not a string.
How do set the font from a native font string?
I'm trying to use wxFont::GetNativeFontInfoDesc() in wxPython and it's
companion wxFont::SetNativeFontInfo() but the latter seems to need a
wxFontInfo object and not a string.
How do set the font from a native font string?
Hi,
On Mon, Jan 4, 2010 at 1:57 PM, BigPilot <bigpilot@linuxmail.org> wrote:
I'm trying to use wxFont::GetNativeFontInfoDesc() in wxPython and it's
companion wxFont::SetNativeFontInfo() but the latter seems to need a
wxFontInfo object and not a string.How do set the font from a native font string?
You can either
1) call wx.Font.SetNativeFontInfoFromString
Or
2) Create an FontInfo instance (wx.NativeFontInfo) with your native
info string then pass that to SetNativeFontInfo.
Cody
Or
3) Create the Font by using wx.FontFromNativeInfoString(infoString)
Cheers, Frank
2010/1/4 Cody Precord <codyprecord@gmail.com>:
Hi,
On Mon, Jan 4, 2010 at 1:57 PM, BigPilot <bigpilot@linuxmail.org> wrote:
I'm trying to use wxFont::GetNativeFontInfoDesc() in wxPython and it's
companion wxFont::SetNativeFontInfo() but the latter seems to need a
wxFontInfo object and not a string.How do set the font from a native font string?
You can either
1) call wx.Font.SetNativeFontInfoFromString
Or
2) Create an FontInfo instance (wx.NativeFontInfo) with your native
info string then pass that to SetNativeFontInfo.