KiXforms Forum Index KiXforms
The Forum for the KiXforms Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Quick Links 
Site News
Downloads
Documentation
Donations
Script Archive
Tracking Systems

Get Installed Fonts

 
Post new topic   Reply to topic    KiXforms Forum Index -> Script Archive
View previous topic :: View next topic  
Author Message
It Took My Prozac
KiXforms Supporter
KiXforms Supporter


Joined: 15 Feb 2005
Posts: 65

PostPosted: Tue Aug 21, 2007 12:14 am    Post subject: Get Installed Fonts Reply with quote

Hi All,
Here is a function to get the fonts installed on a host system.
Cheers,
Richard

Code:
Function Fonts

;FUNCTION      Fonts()
;AUTHOR         Richard von Mallesch (It Took My Prozac)
;ACTION         Gets fonts install on a system
;RETURN         An array of fonts
;REMARKS         Useful for populating a font combobox
;DEPENDENCIES   QSort

   Dim $d,$f
   $d=CreateObject("Scripting.Dictionary")
   For Each $f in CreateObject("Shell.Application").NameSpace(20).Items
      $d.Add(Split(Split($f.Name," Bold")[0]," Italic")[0],"")
   Next
   $Fonts=QSort($d.Keys)

EndFunction
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> Script Archive All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group