GFFont/Testfrm.frm
VERSION 5.00
Begin VB.Form Testfrm
Caption = "GFFont"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4635
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 4635
StartUpPosition = 3 'Windows‑Standard
Begin VB.CommandButton Command3
Caption = "get font name from f. name"
Height = 375
Left = 2400
TabIndex = 4
Top = 2760
Width = 2175
End
Begin VB.TextBox Text2
Height = 285
Left = 120
TabIndex = 3
Top = 2820
Width = 2115
End
Begin VB.CommandButton Command2
Caption = "get font file name"
Height = 375
Left = 2400
TabIndex = 2
Top = 2340
Width = 2175
End
Begin VB.TextBox Text1
Height = 285
Left = 120
TabIndex = 1
Top = 2400
Width = 2115
End
Begin VB.CommandButton Command1
Caption = "Install C:\Verdana.ttf"
Height = 375
Left = 2400
TabIndex = 0
Top = 1860
Width = 2175
End
End
Attribute VB_Name = "Testfrm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
'on error resume next
Debug.Print GFFont_InstallFont("Verdana", "C:\Verdana.ttf")
End Sub
Private Sub Command2_Click()
'on error resume next
Debug.Print GFFont_FontNameToFontFileName(Text1.Text)
End Sub
Private Sub Command3_Click()
'on error resume next
Debug.Print GFFont_FontFileNameToFontName(Text2.Text)
End Sub
[END OF FILE]