Start typing to see suggestions. Use arrow keys to navigate, Enter to select.

FontFilePreview

Provides the custom preview renderer for font files in the Kirby Panel.
Registered via the filePreviews extension and handles static and variable font templates.
/
class FontFilePreview

accepts()

Returns true if this preview handles the given file.
Accepts static-font, static-webfont, static-trial, variable-font and variable-webfont templates.

Parameters

Name Type Description
$file File The file to check.
Returns:
bool

props()

Returns the props array passed to the Panel component, including the thumbnail URL.

Returns:
array

Source: /classes/FontFilePreview.php

Jump to