Skip to content

Commit

Permalink
Fix example in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
JiriLojda committed Apr 15, 2024
1 parent 61d1130 commit e0ee912
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,20 @@ To avoid the problem, you can do one of the following:
```jsonc
{
"previewImageFormat": {
"format": "svg"
"customFontConfigType": "nameAndUrl",
"fontName": "<your font name>",
"fontUrl": "<your font url>"
"format": "svg",
"customFont": {
"customFontConfigType": "nameAndUrl",
"fontName": "<your font name>",
"fontUrl": "<your font url>"
}
},
// or
"previewImageFormat": {
"format": "svg"
"customFontConfigType": "fontFaceDefinition",
"fontFaceDefinition": "@font-face { font-name: 'your-font-name'; src: 'your-font-url'; }" // this allows more flexibility, you can have multiple @font-face definitions and custom font-face properties
"customFont": {
"customFontConfigType": "fontFaceDefinition",
"fontFaceDefinition": "@font-face { font-name: 'your-font-name'; src: 'your-font-url'; }" // this allows more flexibility, you can have multiple @font-face definitions and custom font-face properties
}
}
}
```
Expand Down

0 comments on commit e0ee912

Please sign in to comment.