From 81e99b1dc1763aa1d7a3c1535ee60c358bcc1108 Mon Sep 17 00:00:00 2001 From: lynn Date: Sat, 5 Oct 2024 00:29:12 +0800 Subject: [PATCH] docs: add best practice for fonts persistence --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 4c318f43..1340126a 100644 --- a/README.md +++ b/README.md @@ -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: