Friday, February 12, 2016

What's the point of the Fonts key in the Registry?

I just wrote this Super User answer, and learned some interesting things while doing the research and experimentation. In short, the question asked about the purpose and impact of the entries in this Registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts

What immediately meets the eye is that each entry's name is a human-readable-ish font title and the data is the name of the font file.

The interesting part is that the entry names don't seem to matter. The font files contain the family name and style name, and those are what Windows uses to group fonts and display their names. I tried naming the Registry entries all sorts of things, but programs just used the title in the file.

Two pieces of information are required for Windows to recognize a font. There must be an entry in this key with the filename as the data, and the font file has to exist. If either of those conditions are not met, Windows will ignore the entry or the file. Fortunately, Windows Explorer handles the bookkeeping for you when you paste a font file into the Fonts folder.

No comments:

Post a Comment