mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 03:50:06 +01:00
Conditionalize AddPrivateFont
This commit is contained in:
@@ -114,6 +114,14 @@ def run():
|
|||||||
#endif
|
#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
|
# The stock Font items are documented as simple pointers, but in reality
|
||||||
|
|||||||
Reference in New Issue
Block a user