Skip to content

Commit

Permalink
change default font in PDF
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpapst committed Feb 1, 2025
1 parent 61d906c commit 8175a5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions collections/_documentation/pdf-templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,21 @@ these configurations in your template:

## Fonts

You can change the used font for your PDF templates.

### Available fonts

The PDF engine comes with many fonts that can be used without the need for installing fonts in your computer system.

- Defaults: `times`, `serif`, `helvetica`, `sans`, `sans`, `courier`, `monospace`
- Built-in: `dejavusanscondensed`, `dejavusans`, `dejavuserif`, `dejavuserifcondensed`, `dejavusansmono`, `freesans`, `freeserif`, `freemono`, `ocrb`, `abyssinicasil`, `aboriginalsans`, `jomolhari`, `taiheritagepro`, `aegean`, `aegyptus`, `akkadian`, `quivira`, `lannaalif`, `daibannasilbook`, `garuda`, `khmeros`, `dhyana`, `tharlon`, `padaukbook`, `zawgyi-one`, `ayar`, `taameydavidclm`, `mph2bdamase`, `briyaz`, `lateef`, `sun-exta`, `unbatang`


### Default fonts

If you want to use another default font, you can easily change the font for the entire document by adding a bit of CSS:

```twig
{% raw %}
<style type="text/css">
{% raw %}<style type="text/css">
body { font-family: Helvetica, Dejavu, Arial, sans-serif; }
</style>{% endraw %}
```
Expand Down

0 comments on commit 8175a5a

Please sign in to comment.