# Fonts

This documentation shows you how to add and use custom fonts.

### Gotenberg

To add more fonts for Gotenberg, you have to build a Docker Image and distribute it.

Ref: <https://gotenberg.dev/docs/customize/fonts>

```
FROM gotenberg/gotenberg:7

USER root

COPY /local/path/to/{font}.ttf /usr/local/share/fonts/{font}.ttf

USER gotenberg
```

### WkHtmlToPdf

WkHtmlToPdf will use the fonts from the server (Linux or Windows).&#x20;

Alternatively, you can use the `<link href="font-url" />` (require internet connection)

### mPDF

You can use the "Fonts" from Console UI to fonts, then set metadata to use the custom font:

```
// metadata
{
  "custom-fonts": ["font-key-1", "font-key-2"]
}

// from your template
<style>
* {
  font-family: "font-key";
}
</style>
```

{% hint style="info" %}
Note: mPDF only supports **.tff** fonts
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docking.shipsaas.tech/getting-started/fonts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
