What I want to do is temporarily switch one particular font to another, and switch it back afterwards. This will allow me to see a desired font in any games or softwares. I am wondering if thing like this exists, or is programmatically possible.
It is possible.
First, it can be done globally, by setting the font substitutes in Windows registry. Here is the Microsoft document. Basically you go to
Second, there is also an easier non-global solution called GDI++, which allows you to writing these settings in its
After that you drag the program executable onto that
Then I recommend using MacType. It is derived from GDI++ below. It is a bit complex, but provide good UI for switching/setting profiles. There is a font switching in the profile config. Enable the setting and set the substitutes and it can work on programs properly.
I do not believe one can switch fonts that way.
A font file contains lots of meta-information that is used by Windows/Linux for finding the font that best matches the font requested by the program.
There is no way of transferring that meta-information from one font to another. One would have to merge the two font files into a new font : meta-information from the one and glyphs from the other, with corrections for character dimensions, kerning and other info. In other words: Create a false font that answers to the same characteristics as the real one but uses other glyphs, then rename the real font and replace it by the new.
The effort involved is comparable to that of creating the new font yourself, which is a big job. See Create Your Own Font.
If you're wanting to be able to set all fonts system-wide (including within applications like games) to one particular font or font family, then the answer unfortunately is no, it's not possible.
Every program, from document viewers to browsers to games, have their own font setups, and even the ones that do allow you to customize this have limitations on the types (file formats) of fonts that can be used. Not to mention, such programs usually rely on internal settings to set the default fonts.
Lots of other applications rely on built-in fonts that are in proprietary formats, and lots of times (especially in games) when you're looking at a menu or something with text, you're actually looking at a rendered image of text (so that effects can be rendered over the text like complicated highlights or transition effects). So there's no way to change those fonts without swapping out the images themselves.
Sorry this isn't a more satisfying answer.