I was able to find a TrueType version of the font. The following code
installed it temporarily. There is no need to use RemoveFontResource to get
rid of it. SendMessage seems to be needed to make the font available in
documents created from the template.
Private Declare Function AddFontResource Lib "gdi32" Alias
"AddFontResourceA" (ByVal lpFileName As String) As Long
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA"
(ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As
Any) As Long
Const HWND_BROADCAST = &HFFFF&
Const WM_FONTCHANGE = &H1D
Const FONTFILE = "\\server\share\fonts\font.ttf"
Private Sub Document_New()
AddFontResource FONTFILE
SendMessage HWND_BROADCAST, WM_FONTCHANGE, 0, 0
End Sub
Private Sub Document_Open()
AddFontResource FONTFILE
SendMessage HWND_BROADCAST, WM_FONTCHANGE, 0, 0
End Sub
> I am creating templates for use on our intranet using Word and Excel 2000 on
> Win 2000.
[quoted text clipped - 36 lines]
> MsgBox tmp
> End Sub
Karl E. Peterson - 09 Feb 2006 21:09 GMT
> I was able to find a TrueType version of the font. The following code
> installed it temporarily. There is no need to use RemoveFontResource
> to get rid of it. SendMessage seems to be needed to make the font
> available in documents created from the template.
You might find this instructive:
http://vb.mvps.org/samples/FontPre

Signature
Working without a .NET?
http://classicvb.org/