Skip to content

Commit

Permalink
docs: add best practice for fonts persistence (#638)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackie1210 authored Oct 6, 2024
1 parent c55e4da commit f7b0254
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,11 @@ await satori(

Multiple fonts can be passed to Satori and used in `fontFamily`.

> [!TIP]
> We recommend you define global fonts instead of creating a new object and pass it to satori for better performace, if your fonts do not change. [Read it for more detail](https://github.com/vercel/satori/issues/590)


#### Emojis

To render custom images for specific graphemes, you can use `graphemeImages` option to map the grapheme to an image source:
Expand Down

0 comments on commit f7b0254

Please sign in to comment.