FontPage
weightName()
Get the font weight name from the font file
- Returns:
string— The weight name or fallback message
subFamily()
Get the font subfamily name from the font file
- Returns:
string— The subfamily name or fallback message
fontStyle()
Get the font style (normal or italic)
- Returns:
string— Font style value
hasOpentypeFeature()
Check for opentype feature
- Returns:
bool
url()
Override URL to return parent font family page URL
Parameters
| Name | Type | Description |
|---|---|---|
$options |
mixed |
URL options |
- Returns:
string— Parent page URL
prettyFontWeight()
Get a formatted/pretty font weight from the font file
- Returns:
string— Pretty formatted font weight or fallback message
getFontWeight()
Get the font weight value from the font file
- Returns:
string— The weight value or fallback message
preview()
Get preview object with font files and text
- Returns:
Preview
getPreviewFont()
Deprecated: Use preview()->font() instead
- Returns:
Kirby\Cms\Files
Source: /models/FontPage.php