Skip to content

Commit 8eef9ec

Browse files
docs: in fonts doc update documentation.
1 parent 82c653d commit 8eef9ec

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docs/FONTS.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@ Renderforest.getTemplateAvailableFonts(1021)
1717

1818
[See example](/samples/fonts/get-template-available-fonts.js)
1919

20-
Function returns object containing all fonts. The object which returned has method `getFontById` which accepts `fontId`
21-
as parameter and returns flatten font. Also given flatten font'a `character size` can be modified by calling
22-
`setCharacterSize` which accepts font size as parameter.
20+
`getTemplateVailabeFonts` function returns object containing all fonts.
21+
The object which returned has method `getFontById` which accepts `fontId` as parameter.
22+
`getFontId` method return flatten font.
23+
24+
**Be careful**: `setFonts()` project data instance setter accepts only flatten font.
2325

2426
```js
25-
const primaryFont = fonts.getFontById(256).setCharacterSize(20) // returns flatten font with tuned character size
27+
const primaryFont = fonts.getFontById(256) // returns flatten font with tuned character size
2628
```
2729

2830
Now the flatten font can be used as parameter for `setFonts` setter in project data instance.

0 commit comments

Comments
 (0)