Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Font linking in the registry

Tags:

A few years back, I created a WinForms application that has been successfully deployed. The next version of the application must support Chinese and Korean characters. For aesthetic reasons, my client wanted all the text in the application displayed with the Arial font family.

However, Arial doesn't support Chinese and Korean characters. On most platforms, the Windows Uniscribe Font Fallback mechanism adequately chooses a font to display the East Asian characters. But on English Windows XP, the font it picks is terrible.

I've been looking at resolving this problem with Font Linking. This would allow me to specify which font should be used when Arial can't display a character. This seems like a very elegant solution.

The problem is that the article I linked to says that adding font links through the registry is not officially supported. Also, changing the font links in the registry would impact the whole computer and not just my application.

Does anyone have experience with added font links? Did it work? What are the situations that are going to bit me later?

like image 496
epotter Avatar asked Dec 02 '09 19:12

epotter


People also ask

Where are fonts in the registry?

The font file then ends up in the %systemroot%\Fonts directory, and Windows also stores a copy under %localappdata%\Microsoft\Windows\Fonts. In addition, it registers the font file under HKCU:\Software\Microsoft\Windows NT\CurrentVersion\Fonts, with the entry pointing to the TTF file in the %localappdata% directory.


1 Answers

The "not supported" clause in the linked article is telling you that you can't call Microsoft Support and complain because you used Regedit.exe incorrectly and messed up the machine. It doesn't say that font linking isn't supported.

You can't really affect another program negatively by doing this. Font linking doesn't replace glyphs, only substitute missing ones. Such a program would previously not render text correctly. It will show readable text after you're done. They'll buy you a very nice dinner and some dancing girls.

like image 121
Hans Passant Avatar answered Oct 27 '22 01:10

Hans Passant