BananaFredSoft Posted September 22, 2007 Posted September 22, 2007 How can I get a list of the names of the fonts on a computer? Thanks in advance! -ColinSite:www.bananafredsoft.comStuff:Simple Text Editor - MediaPlayer - Animator - BananaDB - BananaNotes - Chatta - Filesearch - Excuse GeneratorMy YouTube channel:http://www.youtube.com/user/colipat
frostfel Posted September 22, 2007 Posted September 22, 2007 How can I get a list of the names of the fonts on a computer? Thanks in advance!If you just want to see them yourself then just goto Control Panel>Fonts or C:\Windows\FontsIf your trying to get AutoIt to get them Im not sure what the commands are but I know the cmd commands arecd C:\Windows\Fontsdir
The Kandie Man Posted September 22, 2007 Posted September 22, 2007 Like this:#include <file.au3> #include <array.au3> Dim $s_FontList = _FileListToArray(@WindowsDir & "\Fonts\","*.ttf") _ArrayDelete($s_FontList,0) _ArrayDisplay($s_FontList,"Currently " & UBound($s_FontList) & " Fonts Available on this Machine:") - The Kandie Man ;-) "So man has sown the wind and reaped the world. Perhaps in the next few hours there will no remembrance of the past and no hope for the future that might have been." & _"All the works of man will be consumed in the great fire after which he was created." & _"And if there is a future for man, insensitive as he is, proud and defiant in his pursuit of power, let him resolve to live it lovingly, for he knows well how to do so." & _"Then he may say once more, 'Truly the light is sweet, and what a pleasant thing it is for the eyes to see the sun.'" - The Day the Earth Caught Fire
BananaFredSoft Posted September 22, 2007 Author Posted September 22, 2007 Like this:#include <file.au3> #include <array.au3> Dim $s_FontList = _FileListToArray(@WindowsDir & "\Fonts\","*.ttf") _ArrayDelete($s_FontList,0) _ArrayDisplay($s_FontList,"Currently " & UBound($s_FontList) & " Fonts Available on this Machine:")- The Kandie Man ;-)Thanks! -ColinSite:www.bananafredsoft.comStuff:Simple Text Editor - MediaPlayer - Animator - BananaDB - BananaNotes - Chatta - Filesearch - Excuse GeneratorMy YouTube channel:http://www.youtube.com/user/colipat
corz Posted October 18, 2007 Posted October 18, 2007 When I install fonts, I install shortcuts (my fonts collection lives in a different folder altogether)This listing method would miss those. It also won't give you their proper names.If it's just to let a user choose a font, checkout _ChooseFont() in Includes/Misc.au3If you simply want a list, see..HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts;o)(or nothing is foolproof to the sufficiently talented fool..
jennico2 Posted November 29, 2007 Posted November 29, 2007 (edited) hi there ! this is interesting. but both methods (filefind and registry) do not return the font name like it has to be used in guisetfont() and the way _choosefont() does. how can one read out this special font description for a combo box or something like that ? thx j. Edited November 29, 2007 by jennico2 My contributions:Universal translator with national keyboards and Unicode support.Unicode editor with national keyboards and editing features.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now