Sub Globals
Dim Values(0)
End Sub
Sub mnuSysFonts_Click
Reg.RootKey(Reg.rtLocalMachine)
Values() = reg.GetValueNames("SOFTWARE\Microsoft\FontLink\SystemLink")
lbS.Clear 'lbS is a listbox
lbS.Add("SYSTEM FONTS:")
For i = 0 To ArrayLen(Values())-1
lbS.Add(Values(i))
Next
lbS.Add("")
lbS.Add("ADDED FONTS:") 'look for fonts in \Windows\Fonts
FileSearch (alFiles, hard.GetSpecialFolder(hard.sfFonts), "*.ttf")
alFiles.Sort(cCaseUnsensitive) 'alFiles is an array list for sorting purposes
For i = 0 To alFiles.Count - 1
lbS.Add(FileName(alFiles.item(i)))
Next
End Sub