How to change fonts globally in FireMonkey?

I am trying to find a way to globally change the font in a FireMonkey project. What is the easiest way to do this without changing the font property for all components? If there is a way to install the font of the entire application or the entire form (for example, in VCL)?

+5
source share
2 answers

You should be able to do this with Duck Duck Delphi ...

This will change all the fonts for the components in the form:

Form1.duck.all.on('Font').setTo('Name','Arial').setTo('Color',TAlphaColors.Red);

And I have not tried, but any of these โ€œshouldโ€ work for the same application:

Application.duck.all.each.on('Font').setTo('Name','Arial').setTo('Color',TAlphaColors.Red);
Screen.duck.all.each.on('Font').setTo('Name','Arial').setTo('Color',TAlphaColors.Red);

Duck Duck Delphi can be found here:

https://bitbucket.org/sivv/duckduckdelphi

+1
source

FireMonkey styles - . , VCL ParentXXX FMX.

.

0

All Articles