On blowing a font cache, and overwhelming a Fonts folder with the raw power of typography

by Michael S. Kaplan, published on 2008/11/11 03:51 -05:00, original URI: http://blogs.msdn.com/b/michkap/archive/2008/11/11/9059132.aspx


 In response to About the Fonts folder in Windows, Part 3 (aka What changes in Vista?), Shaun asked in a comment:

I unzipped a large number of font folders into my Windows/Fonts folder and now the unzipped folders are not showing up… my Fonts folder is only showing about 4,500 fonts and there are 65,000 fonts in there somewhere but they can’t be viewed and they’re not installed, just sucking up space and invisible. My “show hidden folders” option is enabled in Folder Options, and I can see the folders when I go into “Install Fonts”, but I can’t delete them!

Any ideas on how to access these folders that are obviously there, but unaccesible?

This comment took me back.

Way back, in fact.

To the Spring and Summer of 2000.

I was in the final stages of a book.

This book:

Internationalization with Visual Basic

Now most of the production was done in Microsoft Word for Windows, and the machines they were running it on were almost all running Microsoft Windows NT 4.0.

And the folks doing the production work were having problems.

It seemed like every chapter would have some characters missing. They would exit programs, log off, and reboot. The symptoms changed each time as the exact characters missing would vary, but invariably something would go wrong.

They were desperate.

Folks were getting more frantic in Indiana (where Sams was located), and the stress was being transferred to Redmond (where I was).

So we had a nice long conversation where we wnt through the issue with the fragile font cache in NT 4.0 and how easy it was to blow by having too many fonts. And the large number of fonts that the book needed were more than enough to blow the font cache. and blow it huge.

In Windows 2000, a huge push to fix these problems was very successful, but switching the production machines was just not an option -- the IT staff was just not set up to doing this. Even if they were, the results in Word were not the same between NT 4.0 and Windows 2000, and I was working on NT 4.0 for the book. Moving to a new platform would mean major reformatting work for the whole book. So if it seemed like there was a competition between them and I to decide who would drag their heels the most on the idea of a Win2000 upgrade, then the appearance probably wasn't far from reality.

So my suggestion was to strip down the fonts to the absolute bare minimum, then add just the necessary fonts for each chapter and take them off the machine when done. And reboot in between each chapter, just in case.

It mostly worked just fine (I say mostly because there were some problems in Chapter 3 that were not caught prior to print), and I swore to move all of my machines to Windows 2000 as soon as the book was completely done.

Now like I said the problem was largely fixed in Windows 2000.

But just because things don't blow up as easily as they did in NT 4.0 doesn't mean that GDI and the Fonts folder are prepared to scale beyond 65,000 -- or even 4,500 -- fonts! :-(

In the words of the folks from In Living Color, Homey don't play that.

But the deleton of the extra fonts is easy enough via an elevated CMD prompt. Which should allow the deletion to happen for all of the extraneous font files.

Obviously the situation with my book was what at the time thought of as quite an extreme case of a machine being overwhelmed by the raw power of typography, but all things considered I am pretty sure that 65,000 fonts would probably top that on any version fo Windows (as the folder itself obviously has its own problems scaling to that quantity, beyond whatever problems the underlying infrastructure hits!).

What are the scenarios that one would really need 65,000 fonts installed?

How many fonts do you have on your machine, and in what version of Windows?

when I think about Windows 7 and Long Zheng's Improvements to fonts in Windows 7 over in I Started Something, I can't help wondering if the new Fonts folder in Windows 7 will scale up to 65,000 fonts. I realized three things:

There is a class of bug that if someone finds it you kind of have to do something about it; this scenario might qualify. So I apologize to whoever is tasked to look further into things. :-)

 

This blog brought to you by T (U+0054, aka LATIN CAPITAL LETTER T)


# Mihai on 12 Nov 2008 12:44 PM:

700 OTF/TTF fonts here (Vista SP1).

This is a relatively fresh install, and I add fonts as needed. But I don't think I have ever passed 1000.

# Yuhong Bao on 15 Nov 2008 2:09 AM:

BTW, have you encountered a similar situation with Vista? I am referring to this:

"In Windows 2000, a huge push to fix these problems was very successful, but switching the production machines was just not an option -- the IT staff was just not set up to doing this."


referenced by

2008/11/17 In or out of the default, no way to win, really

go to newer or older post, or back to index or month or day