Get-Font¶
SYNOPSIS¶
Retrieves the installed fonts.
SYNTAX¶
__AllParameterSets¶
Get-Font [[-Name] <string[]>] [[-Scope] <string[]>] [<CommonParameters>]
ALIASES¶
This cmdlet has the following aliases, {{Insert list of aliases}}
DESCRIPTION¶
Retrieves a list of installed fonts for the current user or all users, depending on the specified scope. Supports filtering by font name using wildcards.
EXAMPLES¶
EXAMPLE 1¶
Get-Font
Output:
Name Path Scope
---- ---- -----
Arial C:\Windows\Fonts\arial.ttf CurrentUser
Gets all the fonts installed for the current user.
EXAMPLE 2¶
Get-Font -Name 'Arial*'
Output:
Name Path Scope
---- ---- -----
Arial C:\Windows\Fonts\arial.ttf CurrentUser
Arial Bold C:\Windows\Fonts\arialbd.ttf CurrentUser
Gets all the fonts installed for the current user that start with 'Arial'.
EXAMPLE 3¶
Get-Font -Scope 'AllUsers'
Output:
Name Path Scope
---- ---- -----
Calibri C:\Windows\Fonts\calibri.ttf AllUsers
Gets all the fonts installed for all users.
EXAMPLE 4¶
Get-Font -Name 'Calibri' -Scope 'AllUsers'
Output:
Name Path Scope
---- ---- -----
Calibri C:\Windows\Fonts\calibri.ttf AllUsers
Gets the font with the name 'Calibri' for all users.
PARAMETERS¶
-Name¶
Specifies the name of the font to get.
Type: System.String[]
DefaultValue: '*'
SupportsWildcards: true
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: false
ValueFromPipeline: true
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Scope¶
Specifies the scope of the font(s) to get.
Type: System.String[]
DefaultValue: CurrentUser
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 1
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
CommonParameters¶
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS¶
System.String[]¶
{{ Fill in the Description }}
OUTPUTS¶
System.Collections.Generic.List[PSCustomObject]¶
{{ Fill in the Description }}
System.Collections.Generic.List`1[[System.Management.Automation.PSObject, System.Management.Automation, Version=7.4.6.500, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]¶
{{ Fill in the Description }}
NOTES¶
Returns a list of installed fonts. Each font object contains properties: - Name: The font name. - Path: The full file path to the font. - Scope: The scope from which the font is retrieved.