---
schema_version: "1"
id: f2d2a926ff837dfce1b7a973fa0f96cd91dd18c5ea8878910401d30132120290
title: 使用自訂字型
collection: tableau
version: current
locale: zh-tw
portal_url: https://docs.salesforce.com/tableau/current/zh-tw/public/desktop/formatting_create_custom_fonts.md
canonical_url: https://help.tableau.com/current/public/desktop/zh-tw/formatting_create_custom_fonts.htm
source_site: help.tableau.com
content_type: documentation
content_hash: c95f3b6fe2fdf2ec91c66218b2986d7ddf678c0d7d2f20ae80e8795b0b1f6ffa
description: Use and publish custom fonts in Tableau visualizations and published workbooks.
---
[跳至主要內容](#main-content)

# 使用自訂字型

Tableau 提供了各種字型供您在視覺效果中使用，包括採用其預設字型的字型。Tableau。不過，您可能想使用一種與提供字型不同的字型。例如，您可能希望使用您的公司品牌所獨有的字型。

若要在 Tableau 中使用自訂字型，第一步是將其安裝在執行 Tableau 的電腦上。這包括 Tableau Desktop，並且，如果發佈到 Tableau Server，則還包括執行 Tableau Server 的任何電腦。

> [!IMPORTANT]
> 
> **重要提示**：若 Tableau Desktop 中指定的字型未同樣安裝在 Tableau Server 的所有節點上，Tableau Server 會以預設字型替代。

為了確保 Tableau Server 能夠正確地呈現字型，請確定字型位在隨大多數瀏覽器安裝的字型清單中。這些安裝的常見字型稱為「網頁安全」字型，詳述[如下](https://www.cssfontstack.com/)。

**附註：**如果從 Tableau Server 下載工作簿，將不會隨工作簿一起下載自訂字型。

有關安裝字型詳情，請參閱以下連結：

- [如何在 Windows 中安裝或刪除字型](https://support.microsoft.com/zh-tw/kb/314960)（Microsoft 知識庫）
- [Mac 基礎知識：字型冊](https://support.apple.com/zh-tw/HT201749) （Apple 支援）

字型安裝之後會出現在 Tableau Desktop 的格式窗格中，您可以在該窗格中使用該字型來變更工作簿或工作表層級的字型。有關詳情，請參閱[在工作簿層級設定格式](https://help.tableau.com/current/public/desktop/zh-tw/formatting_workbook.htm)、[在工作表層級設定格式](https://help.tableau.com/current/public/desktop/zh-tw/formatting_worksheet.htm)和[設定文字和數位元的格式](https://help.tableau.com/current/public/desktop/zh-tw/formatting_specific.htm)。

## 發佈自訂字型

要以自訂字型正確地發佈工作簿，有賴瞭解作者和發佈的工作簿之間的互動方式。

<table style="width: 100%;"><colgroup><col style="width: 50%;"><col></colgroup><tbody><tr><td><p><img src="https://help.tableau.com/current/public/desktop/zh-tw/Img/Font_Flow_2.png" alt="說明伺服器、桌面、連接器和 Tableau 之間連線的圖表。"></p></td><td><h4>發佈自訂字型的工作流程</h4><ol style="list-style-type: upper-alpha;"><li value="1"><p>工作簿是在 <span class="mc-variable Variables.TabsProductDesktop variable">Tableau Desktop</span> 中建立的。</p><p><span class="uicontrol">或</span></p></li><li value="2"><p>使用 Web 製作功能建立工作簿。</p></li></ol><p><span class="uicontrol">然後</span></p><ol style="list-style-type: upper-alpha;" start="3"><li value="3"><p>工作簿會發佈到 Tableau Server。</p><p><span class="uicontrol">或</span></p></li><li value="4"><p>工作簿會發佈到 Tableau Cloud。</p></li></ol></td></tr></tbody></table>

<table class="table--plain"><tbody><tr><td><h4>如果</h4></td><td><h4>則</h4></td></tr><tr><td><p><span class="uicontrol">A</span> - 在 <span class="mc-variable Variables.TabsProductDesktop variable">Tableau Desktop</span> 中建立工作簿。</p></td><td><p>您可以在工作簿中使用電腦中安裝的任何字型。</p></td></tr><tr><td><p><span class="uicontrol">B</span> - 使用 Web 製作功能建立工作簿。</p></td><td><p>設定文字格式時，只有安裝在 Tableau Server 或 Tableau Cloud 上的字型才能正常使用。</p></td></tr><tr><td><p><span class="uicontrol">C</span> - 工作簿會發佈到 Tableau Server。</p></td><td><p>所有的伺服器節點上都必須安裝全部的自訂字型。</p><p>如果字型沒有安裝在 Tableau Server 上，則在發佈時，系統會以替代字型取代未安裝的字型。</p></td></tr><tr><td><p><span class="uicontrol">D</span> - 工作簿會發佈到 Tableau Cloud。</p></td><td><p>系統只會顯示 Tableau Cloud 支援的字型。</p><p>發佈時，工作簿中任何不支援的字型都會以替代字型取代。有關支援的字型清單，請參閱<a href="https://help.salesforce.com/s/articleView?id=001472975&amp;type=1" target="_blank">知識庫：字型未如預期般顯示</a>。</p></td></tr></tbody></table>

### 疑難排解已發佈工作簿中的自訂字型

發佈之後，任何要檢視已發佈工作簿的使用者，都必須在電腦上安裝自訂字型。這就是最佳做法是將字型限制為 Tableau 字型或網頁安全字型的理由。

<table style="width: 100%;mc-table-style: url('Resources/TableStyles/Shaded-NoBorder.css');" class="TableStyle-Shaded-NoBorder" cellspacing="0"><colgroup><col class="Column-Column1"><col class="Column-Column1"></colgroup><thead><tr class="Head-Header1"><th class="HeadE-Column1-Header1"><h3 is="heading-item" :level="3" id="問題">問題</h3></th><th class="HeadD-Column1-Header1"><h3 is="heading-item" :level="3" id="可能的解決方案">可能的解決方案</h3></th></tr></thead><tbody><tr class="Body-Body1"><td class="BodyE-Column1-Body1"><p>有些字型在檢視中是準確的，但其他字型則否。</p></td><td class="BodyD-Column1-Body1">當檢視有許多標記時，伺服器會在伺服器端呈現標記，並以靜態影像顯示標記。這會導致檢視中的某些字型和其餘字型不一致。若要解決此問題，請減少每個檢視的標記數目。</td></tr><tr class="Body-Body2"><td class="BodyE-Column1-Body2"><p>字型間距會隨不同的檢視者而有所不同。</p></td><td class="BodyD-Column1-Body2">如果檢視者有在電腦上安裝自訂字型，則檢視者會看到準確顯示的字型。不過，每一款瀏覽器用來轉譯字體的方式略過不同，因此瀏覽器之間的字型看起來稍有不同是正常的。</td></tr><tr class="Body-Body1"><td class="BodyB-Column1-Body1"><p>檢視者看到不同的字型。</p></td><td class="BodyA-Column1-Body1">如果檢視者沒有在電腦上安裝自訂字型，則系統會以瀏覽器選取的替代字型取代工作簿中任何未安裝的字型。</td></tr></tbody></table>