Windows fonts not immediately useable in application after installing?
Posted
by Jappie
on Stack Overflow
See other posts from Stack Overflow
or by Jappie
Published on 2010-06-03T07:49:40Z
Indexed on
2010/06/03
7:54 UTC
Read the original article
Hit count: 188
Whenever I install a new font on a Windows 2003 server, I can't use it immediately in my asp.net web application. The application gets the font through the CreateFontIndirect
gdi32.dll win api. It seems like fonts get cached somewhere, because I will just get the default font returned.
The font cache gets updated after a reboot, and then I get the correct font, but obviously I wouldn't like to do a reboot on a production server just for getting a new font to work.
Is there a way to flush the font cache?
© Stack Overflow or respective owner