Function __global->find_all_fonts
Definitions
sources/fonts.php
- Find all available fonts.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $test_character_support | boolean | No | No | False | N/A | N/A | Test the font supports the characters in the site title (a rough way to check it is a reasonable font to use on this site) |
| $include_paths | boolean | No | No | False | N/A | N/A | Whether to include local paths to the font files |
Returns
- A map between font name and label to use for the font
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find all available fonts.
*
* @param boolean $test_character_support Test the font supports the characters in the site title (a rough way to check it is a reasonable font to use on this site)
* @param boolean $include_paths Whether to include local paths to the font files
* @return array A map between font name and label to use for the font
*/
function find_all_fonts(bool $test_character_support = false, bool $include_paths = false) : array
* Find all available fonts.
*
* @param boolean $test_character_support Test the font supports the characters in the site title (a rough way to check it is a reasonable font to use on this site)
* @param boolean $include_paths Whether to include local paths to the font files
* @return array A map between font name and label to use for the font
*/
function find_all_fonts(bool $test_character_support = false, bool $include_paths = false) : array

