mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 09:40:07 +01:00
Conditionalize AddPrivateFont
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user