B
Bryan Kinkel
From what I can tell, the FontFamily() collection does not receive
notification when system fonts are changed while a .NET application is
running.
For example, you have your .NET app running. The user adds or removes a
series of fonts using the Windows Control Panel. The FontFamily() collection
in your app will remain unchanged. The same applies if any app, including
the running .NET app, uses Win32 calls such as AddFontResource() to install
a font. The FontFamily() collection will not update itself until the .NET is
restarted.
This behavior differs significantly from functionality in the Classic VB
Fonts() collection (going back to VB1.0). The Fonts() collection was always
refreshed when the system font list changed.
I have posted a sample VS2005 project demonstrating the issue at the
following URL:
http://loseyourmindcom.setupmyblog.com/?p=14
For me, this is a serious for. I've been trying to rewrite a font manager
application. If the FontFamily() collection is not updated, then I can't
draw newly installed fonts using GDI+. And using the PrivateFontCollection()
object would be a lot of work (and a sizable kludge).
1. Is this behavior by design? Why?
2. Is there any chance of getting it fixed for Visual Studio 2005?
Thanks,
Bryan Kinkel
(e-mail address removed)
notification when system fonts are changed while a .NET application is
running.
For example, you have your .NET app running. The user adds or removes a
series of fonts using the Windows Control Panel. The FontFamily() collection
in your app will remain unchanged. The same applies if any app, including
the running .NET app, uses Win32 calls such as AddFontResource() to install
a font. The FontFamily() collection will not update itself until the .NET is
restarted.
This behavior differs significantly from functionality in the Classic VB
Fonts() collection (going back to VB1.0). The Fonts() collection was always
refreshed when the system font list changed.
I have posted a sample VS2005 project demonstrating the issue at the
following URL:
http://loseyourmindcom.setupmyblog.com/?p=14
For me, this is a serious for. I've been trying to rewrite a font manager
application. If the FontFamily() collection is not updated, then I can't
draw newly installed fonts using GDI+. And using the PrivateFontCollection()
object would be a lot of work (and a sizable kludge).
1. Is this behavior by design? Why?
2. Is there any chance of getting it fixed for Visual Studio 2005?
Thanks,
Bryan Kinkel
(e-mail address removed)