Function __global->find_font_path

Definitions

sources/fonts.php

  • Find the path to a font.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$font string No No required parameter N/A N/A Font file name (without .ttf)

Returns

  • The file path
  • Type: PATH
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find the path to a font.
 *
 * @param  string $font Font file name (without .ttf)
 * @return PATH The file path
 */

function find_font_path(string $font) : string