Skip to content

Commit 6c3acff

Browse files
samples: update templates fonts sample.
1 parent e201a55 commit 6c3acff

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

samples/project-data/template-fonts.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,8 @@ Promise.all([Renderforest.getTemplateAvailableFonts(1021), Renderforest.getProje
1414
.then(([fonts, projectDataInstance]) => {
1515
// to know if template has one or more fonts to choose
1616
console.log(projectDataInstance.getFonts())
17-
const primaryFont = fonts.getFontById(256).setCharacterSize(20)
18-
const secondaryFont = fonts.getFontById(1586).setCharacterSize(10)
19-
2017
return projectDataInstance.resetFonts()
21-
.setFonts([primaryFont, secondaryFont])
18+
.setFonts([fonts.getFontById(256), fonts.getFontById(1586)])
2219
.save()
2320
})
2421
.then(console.log)

0 commit comments

Comments
 (0)