| external help file | Microsoft.Online.SharePoint.PowerShell.dll-Help.xml |
|---|---|
| Module Name | Microsoft.Online.SharePoint.PowerShell |
| online version | https://learn.microsoft.com/powershell/module/microsoft.online.sharepoint.powershell/set-spofontpackage |
| applicable | SharePoint Online |
| title | Set-SPOFontPackage |
| schema | 2.0.0 |
| author | JQ1u |
| ms.author | luchaoqiu |
| ms.reviewer |
Applies a brand font package to a SharePoint site or Viva Connections.
Set-SPOFontPackage [-Identity] <SPOFontPackagePipeBind> [-WebUrl] <String> [<CommonParameters>]
This cmdlet applies a brand font package to a specified SharePoint site or Viva Connections. Use this cmdlet to customize the typography and branding of SharePoint sites by applying predefined font packages.
Set-SPOFontPackage -Identity 12345678-1234-1234-1234-123456789012 -WebUrl "https://contoso.sharepoint.com/sites/marketing"This example applies the font package with the specified GUID to the marketing site.
$sites = @("https://contoso.sharepoint.com/sites/hr", "https://contoso.sharepoint.com/sites/finance")
$fontPackage = Get-SPOFontPackage -Identity 12345678-1234-1234-1234-123456789012
foreach ($site in $sites) {
Set-SPOFontPackage -Identity $fontPackage -WebUrl $site
}This example retrieves a font package and applies it to multiple sites.
Applicable: SharePoint Online
Specifies the identity of the font package to apply. This can be the ID (GUID) of the font package, or a font package object.
Type: Microsoft.Online.SharePoint.PowerShell.SPOFontPackagePipeBind
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: FalseApplicable: SharePoint Online
Specifies the URL of the SharePoint site or Viva Connections where the font package will be applied.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.