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.
Information
| Property | Value |
|---|---|
| Namespace | NymarkType\Fountain |
| Extends | Kirby\Panel\Ui\FilePreview |
| Source | /classes/FontFilePreview.php |
__construct()
No documentation available.
Parameters
| Name | Type | Description |
|---|---|---|
$file |
Kirby\Cms\File |
|
$component |
string |
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