Private Declare Function AddFontResourceEx Lib "gdi32" Alias "AddFontResourceExA" (ByVal lpszFilename As String, ByVal fl As Long, ByVal pdv As Long) As Long
Private Declare Function RemoveFontResourceEx Lib "gdi32" Alias "RemoveFontResourceExA" (ByVal lpszFilename As String, ByVal fl As Long, ByVal pdv As Long) As Long
Private Const FR_PRIVATE = &H10
Sub AddFontFromFile(pFile As String)
AddFontFromFile = (AddFontResourceEx(pFile, FR_PRIVATE, 0) > 0)
End Sub
Sub RemoveFontFromFile(pFile As String)
RemoveFontFromFile = (RemoveFontResourceEx(pFile, FR_PRIVATE, 0) <> 0)
End Sub