Set-SPOCustomFontCatalog
產生組織字型目錄,並將字型檔案和目錄檔案上傳到 SharePoint 組織資產庫。
語法
Default (預設值)
Set-SPOCustomFontCatalog
-LibraryUrl <SpoSitePipeBind>
-FontFolder <String>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
此 Cmdlet 會產生目錄檔案,讓組織字型可在支援的 Microsoft 365 應用程式中使用,包括 PowerPoint 和 Word,並將目錄檔案和字型檔案上傳至 SharePoint 組織資產庫。
使用此 Cmdlet 之前,請使用 Add-SPOOrgAssetsLibrary 和 -CdnType Public將-OrgAssetType OfficeFontLibrary目標文件庫指定為組織字型的組織資產庫。
本機字型資料夾必須包含您要發佈的完整字型檔案集。 資料夾必須為本機資料夾、不得包含子資料夾,且必須只包含字型檔案。 稍後若要新增、更新或移除字型,請更新本機資料夾,使其包含所需的完整字型集,包括未變更的字型,然後再次執行此 Cmdlet。
組織字型的組織資產庫匯報最多可能需要 24 小時才能傳播。
警告
透過使用此功能並發佈字型檔案,便會建立字型目錄檔案。 字型目錄檔案和字型檔案會公開儲存在雲端中,如果組織資產庫裝載在受限制的 SharePoint 網站上,則不會遵守網站分類指導方針。
字型目錄檔案包含字型名稱和其他字型中繼資料。 任何人都可以存取這些檔案,包括組織外部的人員,他們可以取得指向這些檔案的 URL。
您可以刪除這些檔案。 不過,刪除它們會防止功能如預期般運作。
如果您的字型包含專屬資訊、有授權限制 (例如雲端託管限制),或如果您的組織不願意公開這些字型,請勿使用此功能。
範例
範例 1
Add-SPOOrgAssetsLibrary -LibraryUrl https://contoso.sharepoint.com/sites/branding/FontLibrary -OrgAssetType OfficeFontLibrary -CdnType Public
Set-SPOCustomFontCatalog -FontFolder "C:\ContosoFonts" -LibraryUrl https://contoso.sharepoint.com/sites/branding/FontLibrary
此範例會將 FontLibrary 文件庫指定為組織字型的組織資產庫,並從 C:\ContosoFonts 產生的字型類別目錄檔案上傳字型。
範例 2
Set-SPOCustomFontCatalog -FontFolder "C:\ContosoFonts" -LibraryUrl https://contoso.sharepoint.com/sites/branding/FontLibrary
此範例會以 中 C:\ContosoFonts的完整字型集取代已發佈的組織字型集。
範例 3
Set-SPOCustomFontCatalog -FontFolder "C:\ContosoFonts" -LibraryUrl https://contoso.sharepoint.com/sites/branding/FontLibrary -Verbose
此範例會上傳字型,並顯示其他字型驗證詳細資料和字型功能表預覽。
參數
-Confirm
適用對象:SharePoint Online
執行 Cmdlet 之前提示您確認。
參數屬性
| 類型: | System.Management.Automation.SwitchParameter |
| 預設值: | None |
| 支援萬用字元: | False |
| 不要顯示: | False |
| 別名: | CF |
參數集
(All)
| Position: | Named |
| 必要: | False |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
-FontFolder
適用對象:SharePoint Online
指定包含要上傳之字型檔案的本機資料夾。 資料夾必須是本機路徑、必須包含至少一個支援的字型檔案、不能包含子資料夾,並且必須只包含字型檔案。
參數屬性
| 類型: | System.String |
| 預設值: | None |
| 支援萬用字元: | False |
| 不要顯示: | False |
參數集
(All)
| Position: | Named |
| 必要: | True |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
-LibraryUrl
適用對象:SharePoint Online
指定指定為組織字型之組織資產庫之 SharePoint 文件庫的絕對 URL。 必須使用 Add-SPOOrgAssetsLibrary -OrgAssetType OfficeFontLibrary -CdnType Public新增程式庫。
只包含文件庫的直接路徑。 請勿包含檢視頁面,例如 /AllItems.aspx。
參數屬性
| 類型: | Microsoft.Online.SharePoint.PowerShell.SpoSitePipeBind |
| 預設值: | None |
| 支援萬用字元: | False |
| 不要顯示: | False |
參數集
(All)
| Position: | Named |
| 必要: | True |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
-WhatIf
適用對象:SharePoint Online
顯示執行 Cmdlet 時會發生什麼情況。 請注意,Cmdlet 實際上並未執行。
參數屬性
| 類型: | System.Management.Automation.SwitchParameter |
| 預設值: | None |
| 支援萬用字元: | False |
| 不要顯示: | False |
| 別名: | WI |
參數集
(All)
| Position: | Named |
| 必要: | False |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
CommonParameters
此 Cmdlet 支援常見參數: -Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 如需詳細資訊,請參閱 about_CommonParameters。
輸入
None
輸出
System.Object
備註
上傳期間,系統可能會提示您再次輸入認證。
使用 -Verbose common 參數以顯示其他非阻塞字型驗證資訊和字型功能表預覽。 詳細資訊輸出可以包含驗證警告、字型特性相關資訊訊息,以及字型系列和字型面孔在 Office 字型功能表中的顯示方式預覽。