Table of contents
File: FontPaths.php line 36
Shared font paths rooted at the library base directory.
Tags
since: 2026-06-08
category: Library
author: Nicola Asuni info@tecnick.com
copyright: 2011-2026 Nicola Asuni - Tecnick.com LTD
license: https://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE)
buildAllowedPaths() : array<string|int, string>: Build trusted roots for local font file access.
findFontFile() : string: Returns the full path of a font file, or an empty string when it is not found.
getInputPath() : string: Returns the default input font directory.
getLibraryRoot() : string: Returns the library root directory.
getOutputPath() : string: Returns the default output font directory.
Methods
buildAllowedPaths()
File: FontPaths.php line 107
public static buildAllowedPaths() : array<string|int, string>
Return values
findFontFile()
File: FontPaths.php line 52
public static findFontFile(string $fontdir, string $file) : string
Parameters
- $fontdir : string: Original font directory.
- $file : string: Font file name.
Return values
getInputPath()
File: FontPaths.php line 89
public static getInputPath() : string
Return values
getLibraryRoot()
File: FontPaths.php line 41
public static getLibraryRoot() : string
Return values
getOutputPath()
File: FontPaths.php line 97
public static getOutputPath() : string
Return values
string