Page 1 of 1

Save Font Names

Posted: Thu Sep 21, 2017 11:48 am
by rbytes
A short routine to save all available font names into a text file. The screenshot shows just the first part of my file.

Code: Select all

''
Save Font Names
by rbytes, September 2017
''
l = #.fontlist()  'returns list of installed fonts as an array l.
f = "Fontnames.txt"
#.writelines(f,l) ' saves array l to file "Fontnames.txt"
#.output("Done")

Re: Save Font Names

Posted: Thu Sep 21, 2017 1:27 pm
by Mr. Kibernetik
Yes, and the same in one line :D :

Code: Select all

#.writelines("Fontnames.txt",#.fontlist()) 'Save Font Names to File

Re: Save Font Names

Posted: Thu Sep 21, 2017 1:34 pm
by rbytes
Beautiful!