From bed51658ca0504ff9c57b7a2bdea832a31501552 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 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4c318f43..71051a39 100644 --- a/README.md +++ b/README.md @@ -315,7 +315,12 @@ await satori( ) ``` -Multiple fonts can be passed to Satori and used in `fontFamily`. +Multiple fonts can be passed to Satori and used in + +> [!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) + +`fontFamily`. #### Emojis