Page 1 of 1

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

Posted: Thu Mar 08, 2018 4:35 pm
by Lt. Kernal
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!

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

Posted: Thu Mar 08, 2018 4:43 pm
by Lt. Kernal
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.

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

Posted: Thu Mar 08, 2018 6:36 pm
by Erwin Denissen
No, such feature is not part of our font manager.

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

Posted: Thu Mar 08, 2018 6:57 pm
by Bhikkhu Pesala
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 4065 times

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

Posted: Thu Mar 08, 2018 7:33 pm
by Lt. Kernal
@ Bhikkhu Pesala
That solution works quite well.
Thanks!