How to disable font antialiasing?

We are using RPA bots to test functionality and ideally require the antialiasing to be disabled (along with the other Windows UI visual effects). I can’t seem to find a way to disable these by registry or configuration of some kind. Is there any way to disable the “Screen font antialiasing” (other than manually).
image

What is Miklos hacking – API improvements in LibreOffice is about this… But only for lines, not fonts. And there is a regression in 7.5, that broke the functionality.

If you need a new functionality, you are always welcome to file an enhancement request, or hire someone, or even implement it yourself.