FontFamilyPage
Information
| Property | Value |
|---|---|
| Namespace | Global |
| Extends | Kirby\Cms\Page |
| Implements | Kirby\Uuid\Identifiable, Stringable |
| Source | /models/FontFamilyPage.php |
totalFonts()
Get total count of fonts including draft status
- Returns:
string— Formatted string showing total fonts and drafts
totalBundles()
Get total count of bundles including draft status
- Returns:
string— Formatted string showing total bundles and drafts
trialUrl()
Trial download URL for this font family
- Returns:
string— URL for downloading trial version
fonts()
Get all listed font children sorted by weight and subfamily
- Returns:
Kirby\Cms\Collection— Collection of font pages
fontsByWeight()
Get all listed font children sorted by weight value, upright before italic within each weight
- Returns:
Kirby\Cms\Collection— Collection of font pages
bundles()
Get all listed font bundle children
- Returns:
Kirby\Cms\Collection— Collection of font bundle pages
variables()
Get all listed variable fonts
- Returns:
Kirby\Cms\Collection— Collection of variable font pages
scripts()
Get all unique supported scripts across all font files in this family.
Parameters
| Name | Type | Description |
|---|---|---|
$separator |
?string |
- Returns:
array|string
features()
Get all OpenType features across all font files, with names resolved from the lookup table and family-level overrides.
- Returns:
Kirby\Cms\Collection— Collection of Obj with opentypeTag() and opentypeName()
fontFiles()
Get all static font files attached to this font family Sorted based on sort order for featStyles first, grouped based on slant with weight value as second sorting.
- Returns:
Kirby\Cms\Files— Collection of static font files
isVariable()
Get all static font files attached to this font family
- Returns:
bool— Collection of static font files
preview()
Get preview object with font files and text
- Returns:
NymarkType\Fountain\Preview
designers()
Return all designers from all fonts
Parameters
| Name | Type | Description |
|---|---|---|
$separator |
?string |
- Returns:
array|string
fontVersion()
Return all font versions from all fonts
Parameters
| Name | Type | Description |
|---|---|---|
$separator |
?string |
|
$raw |
bool |
- Returns:
array|string
fontSize()
Font size for font tester
- Returns:
?string
lineHeight()
Line height for font tester
- Returns:
?string
letterSpacing()
Letter spacing for font tester
- Returns:
?string
getPreviewFont()
Deprecated: Use preview()->files() instead
- Returns:
?Kirby\Cms\Files