File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff 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
2830Now the flatten font can be used as parameter for ` setFonts ` setter in project data instance.
You can’t perform that action at this time.
0 commit comments