A while back I wanted a way to just put font files in my project resource and be able to use them in my project, so I came up with this:
Also keep in mind that I wrote this a while ago ... so this may be able to be done better...

To Implement:
vb Code:
'At begining of project call this:
clsText.installAllFontsFromResources()
'To show something using the font from cache:
Button1.Font = clsText.FontFromCache(New Drawing.Font("Font name", 72, Drawing.FontStyle.Bold))
'If your Button1's font was already set to "Font Name" on your computer before deployment you should also be able to use something like:
Button1.Font = clsText.FontFromCache(Button1.Font)
'If you want to change all controls fonts on a form from cache you can do something like this:
Dim ctl As Control = Me.GetNextControl(Me, True)
Do Until ctl Is Nothing
ctl.Font = clsText.FontFromCache(ctl.Font)
ctl = Me.GetNextControl(ctl, True)
Loop
LIMITATIONS
Any form/control etc that has been created PRIOR to calling "clsText.installAllFontsFromResources()" will not be able to have their font set this way.. it is recommended that you create a class with a shared Main function in it if you wish to use this class (as can be seen in the example project)
Hope this helps some people ...
Also please provide feedback and say thanks if this helped you
LINK DOWN -
Downloads
*Downloads are now hosted on multiupload due to the attachment limit on VBForums
Kris