Skip to content

Instantly share code, notes, and snippets.

@mczerniawski
Created July 26, 2017 20:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mczerniawski/8d153f25f18351c80acbc58b13f40685 to your computer and use it in GitHub Desktop.
Save mczerniawski/8d153f25f18351c80acbc58b13f40685 to your computer and use it in GitHub Desktop.
Add-Type -AssemblyName System.Drawing
$objFontCollection = New-Object System.Drawing.Text.PrivateFontCollection
$objFontCollection.AddFontFile($item.FullName)
$FontName = $objFontCollection.Families.Name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment