I suspect that you would have to edit the Registry, and that would require an Elevated App.
First add a new item to your Project - an "Application Manifest File".
Then edit it, and change the
requestedExecutionLevel
element to:
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
Now when your app runs, the user will get the UAC prompt automatically.
Now your code can edit the registry, once you have decided how "wide" you want the change: whole system or current user only (they are stored in different places). This may help:
https://www.tenforums.com/tutorials/66696-change-font-registry-editor-windows-10-a.html[
^]
Then you will need to edit the actual keys:
RegistryKey Class (Microsoft.Win32) | Microsoft Docs[
^] will let you work it out.
Almost certainly, it will require a reboot to be effective.
But ... you will really, really annoy anyone who runs your app. If an app did it to me, I'd restore from backup, and hunt you down with violent intentions: you mess with system wide UI elements at the risk of getting bombarded by angry users.
I wouldn't do it at all if I was you ...