Function __global->find_default_font
Definitions
sources/fonts.php
- Find the default font to use.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $mono | boolean | No | No | False | N/A | N/A | Whether we want a monospaced font |
Returns
- Default font file name (without .ttf)
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find the default font to use.
*
* @param boolean $mono Whether we want a monospaced font
* @return string Default font file name (without .ttf)
*/
function find_default_font(bool $mono = false) : string
* Find the default font to use.
*
* @param boolean $mono Whether we want a monospaced font
* @return string Default font file name (without .ttf)
*/
function find_default_font(bool $mono = false) : string

