Can MainType generate a text list of font families and styles?

Get help with MainType here. Please do not post feature requests or bug reports here.
Post Reply
Lt. Kernal
Posts: 11
Joined: Mon Feb 12, 2018 5:06 pm

Can MainType generate a text list of font families and styles?

Post by Lt. Kernal » Thu Mar 08, 2018 4:35 pm

Hello,
I was looking for a way to get a textfile list of the font family and style for each font in a directory, group, or view.
Is this possible?

The list would look like this:
Arial
Arial Italic
Arial Bold
Arial Black
Calibri
Calibri Light
Calibri Light Italic
Calibri Bold
...etc....

I know that MainType can "Print" and "Export fonts as a web-collection", but was just looking for a simple, text-based list.
If it is not possible in this wonderful piece of software, does anyone know of a non-MainType way of doing this?
And no, I don't mean a list of files, like "dir \ C:\WINDOWS\Fonts >FontList.txt". A mean list with the font family name and the styles. :-)

Thanks!

Lt. Kernal
Posts: 11
Joined: Mon Feb 12, 2018 5:06 pm

Re: Can MainType generate a text list of font families and styles?

Post by Lt. Kernal » Thu Mar 08, 2018 4:43 pm

Ah! I found a way to do this in Windows Powershell

Use the command line:

Code: Select all

[System.Reflection.Assembly]::LoadWithPartialName("System.Drawing")
(New-Object System.Drawing.Text.InstalledFontCollection).Families
Infortunatley it only works for installed fonts.
I would still be curious if it is possible in MainType, because I would like to do it for non-installed fonts within groups, views, or folders.

Thanks again.

Erwin Denissen
Moderator
Moderator
Posts: 7348
Joined: Fri Oct 04, 2002 12:41 am
Location: De Bilt, The Netherlands
Contact:

Re: Can MainType generate a text list of font families and styles?

Post by Erwin Denissen » Thu Mar 08, 2018 6:36 pm

No, such feature is not part of our font manager.
Erwin Denissen
High-Logic
Proven Font Technology

Bhikkhu Pesala
Top Typographer
Top Typographer
Posts: 7448
Joined: Tue Oct 29, 2002 5:28 am
Location: Seven Kings, London UK
Contact:

Re: Can MainType generate a text list of font families and styles?

Post by Bhikkhu Pesala » Thu Mar 08, 2018 6:57 pm

As a workaround, print a compact font listing or a font listing to a PDF printer like CutePDF with the following settings.
Compact Font Listing.png
Compact Font Listing.png (8.32 KiB) Viewed 278 times
Attachments
MainType - Font Listing.pdf
(125.04 KiB) Downloaded 19 times
MainType - Compact Font Listing.pdf
(121.79 KiB) Downloaded 16 times
My FontsReviews: MainTypeFont CreatorHelpFC11.5 Pro + MT8.0 @ Win10 1803

Lt. Kernal
Posts: 11
Joined: Mon Feb 12, 2018 5:06 pm

Re: Can MainType generate a text list of font families and styles?

Post by Lt. Kernal » Thu Mar 08, 2018 7:33 pm

@ Bhikkhu Pesala
That solution works quite well.
Thanks!

Post Reply