File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 1+ <#
2+ . SYNOPSIS
3+ Mind your 'P's and 'q's
4+ . DESCRIPTION
5+ A simple demo to help you mind your 'P's and 'q's
6+ . NOTES
7+ The phrase "Mind your 'P's and 'q's" originates with typography.
8+
9+ Uppercase P is typically the tallest letter, and lowercase q is typically the lowest letter.
10+
11+ This little example imports the Inconsolata font and gets the 'P' and 'q' characters and saves them as an SVG.
12+ #>
13+ param (
14+ [string ]
15+ $FontFamily = ' Inconsolata'
16+ )
17+
18+ $importedFont =
19+ Get-Font |
20+ Where-Object FamilyName -eq $FontFamily |
21+ Select-Object - First 1 |
22+ Import-Font
23+
24+ $importedFont.GetGlyph (" P" ).SVG.Save(" $pwd /${FontFamily} _P.svg" )
25+ Get-Item " $pwd /${FontFamily} _P.svg"
26+ $importedFont.GetGlyph (" q" ).SVG.Save(" $pwd /${FontFamily} _q.svg" )
27+ Get-Item " $pwd /${FontFamily} _q.svg"
You can’t perform that action at this time.
0 commit comments