|Ned Batchelder : Blog | Code | Text | Site|
» Home : Blog : July 2004
With all of the new laptops in my life recently, one thing I've gotten good at is changing the Display properties to get the Windows desktop to look the way I want it. The key change is to set every font (window title, message box, icon, everything) to Verdana 10.
When I got all through with the changes, I saved my theme into a .theme file. Being curious, I examined it. Despite its new-age 5-letter file extension, it's a text file, formatted like a classic .ini file. But the word "Verdana" didn't appear anywhere in it. Odd.
The only part of the file I didn't understand was the Metrics section which contains long strings of numbers:
That's when the repeated sequence "86 101 114 100 97 110 97" caught my eye. Too many years of debugging have taught me to notice numbers that smell suspiciously like ASCII. Sure enough, that's "Verdana" in ASCII.
What's going on here? The names of the entries are the tip off: these are simple decimal byte-for-byte dumps of the windows structures ICONMETRICS, NONCLIENTMETRICS, and the font information is the nested LOGFONT structure.
Anyway, back to the theme. If you want a Windows desktop done right, the information is all in the numbers above. Manual instructions: set
tagged: windows» 6 reactions