Save Font Names

Post Reply
User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Save Font Names

Post 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")
Attachments
Screenshot (55).png
Screenshot (55).png (101.91 KiB) Viewed 1505 times
The only thing that gets me down is gravity...

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Save Font Names

Post by Mr. Kibernetik »

Yes, and the same in one line :D :

Code: Select all

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

User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Re: Save Font Names

Post by rbytes »

Beautiful!
The only thing that gets me down is gravity...

Post Reply