Retrieves template available fonts.
<?php
require '../../vendor/autoload.php';
$renderforestClient = new \Renderforest\ApiClient(
'your-api-key',
'your-client-id'
);
$fonts = $renderforestClient->getTemplateAvailableFonts(701);
See get template available fonts example
getTemplateAvailabeFonts
function returns an object containing all fonts.
The returned object has getFontById
method which accepts fontId
parameter.
$primaryFont = $fonts->getFontById(1656) // returns font
Now the font can be used as parameter for setFonts
setter in project data instance.