Skip to content

Commit f7b0254

Browse files
authored
docs: add best practice for fonts persistence (#638)
1 parent c55e4da commit f7b0254

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,11 @@ await satori(
317317

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

320+
> [!TIP]
321+
> 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)
322+
323+
324+
320325
#### Emojis
321326

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

0 commit comments

Comments
 (0)