Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 918 Bytes

FONTS_API.md

File metadata and controls

34 lines (22 loc) · 918 Bytes

Fonts API

Get template available fonts

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.

See setFonts() setter in project data

⬆ back to the top