Share via


Get-SPOFontPackage

Returns one or all custom font packages in the tenant.

Syntax

Default (Default)

Get-SPOFontPackage
    [[-Identity] <SPOFontPackagePipeBind>]
    [<CommonParameters>]

Description

This cmdlet retrieves one or more custom font packages in the tenant. Custom font packages include those created through the SharePoint Brand Center app or by using the Add-SPOFontPackage cmdlet. You can retrieve a specific font package by providing its identity, or retrieve all font packages if no identity is specified.

Font packages contain custom typography definitions that can be applied to SharePoint sites and Viva Connections for branding purposes.

Examples

EXAMPLE 1

Get-SPOFontPackage

This example returns all font packages in the tenant.

EXAMPLE 2

Get-SPOFontPackage -Identity 12345678-1234-1234-1234-123456789012

This example returns the font package with the specified GUID.

EXAMPLE 3

Get-SPOFontPackage | Where-Object {$_.IsHidden -eq $false}

This example returns all visible font packages (not hidden).

EXAMPLE 4

$fontPackage = Get-SPOFontPackage -Identity 12345678-1234-1234-1234-123456789012
$fontPackage.PackageJson

This example retrieves a specific font package and displays its JSON configuration.

Parameters

-Identity

Applicable: SharePoint Online

Specifies the identity of the font package to retrieve. This can be the ID (GUID) of the font package, or a font package object. If not specified, all font packages will be retrieved.

Parameter properties

Type:Microsoft.Online.SharePoint.PowerShell.SPOFontPackagePipeBind
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

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

Microsoft.Online.SharePoint.PowerShell.SPOFontPackagePipeBind

Outputs

System.Object