Skip to content

Instantly share code, notes, and snippets.

@mczerniawski
Last active July 26, 2017 20:51
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/1da8acca51256e95bb98b70dc43182af to your computer and use it in GitHub Desktop.
Save mczerniawski/1da8acca51256e95bb98b70dc43182af to your computer and use it in GitHub Desktop.
process {
switch ($PsCmdlet.ParameterSetName) {
"Directory" {
ForEach ($fontsFolder in $Path){
$fontFiles = Get-ChildItem -Path $fontsFolder -File -Recurse -Include @("*.fon", "*.fnt", "*.ttf","*.ttc", "*.otf", "*.mmm", "*.pbf", "*.pfm")
}
}
"File" {
$fontFiles = Get-ChildItem -Path $FontFile -Include @("*.fon", "*.fnt", "*.ttf","*.ttc", "*.otf", "*.mmm", "*.pbf", "*.pfm")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment