Conditionalize AddPrivateFont

This commit is contained in:
Robin Dunn
2018-02-13 22:12:11 -08:00
parent ef477f5ef8
commit a81c0b12f2

View File

@@ -114,6 +114,14 @@ def run():
#endif
""")
c.find('AddPrivateFont').setCppCode("""\
#if wxUSE_PRIVATE_FONTS
return wxFont::AddPrivateFont(*filename);
#else
wxPyRaiseNotImplemented();
return false;
#endif
""")
# The stock Font items are documented as simple pointers, but in reality