Use the DefaultFont property or DelphiVCL.Application.DefaultFont to specify the default font used by the application.
DefaultFont specifies the default font used by the application. All newly created forms use DefaultFont if the ParentFont property is set to True. Changing DefaultFont later at run-time will trigger an update for all forms that use the parent font.
Let’s browse all the properties, methods, and built-in properties of the DelphiVCL.Application.DefaultFont using dir() command:
1 2 3 |
import DelphiVCL dir(DelphiVCL.Application.DefaultFont) |
See the responses in our Windows command prompt:
You can also read short information about the DelphiVCL.Application.DefaultFont using the print() command:
1 2 |
print(DelphiVCL.Application.DefaultFont) print(DelphiVCL.Application.DefaultFont.__doc__) |
See the responses in our Windows command prompt:
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.