Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi I have unicode font .ttf in my local language. I want to develop a small utility which will toggle between English input language and my custom unicode font system wide.

How can i achieve this.

What I have tried:

I have tried nothing as I have no idea what to learn and where to start.
Posted
Updated 17-Jan-22 22:25pm
Comments
Member 13503032 18-Jan-22 4:26am    
https://bit.ly/3tC9bwb

This is a utility already developed which with CTRL+1 toggle between languages.
I have no idea how it works and what language is used to develop it.
But it works perfectly and requires no installation, just one single standalone Exe file.

But I want to develop the same utility.

It requires no reboot or elevation level.

It may possible that I did not phrase my question properly, please advise.

1 solution

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:
XML
<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 ...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900