Table of contents
File: Subset.php line 39
Tags
since: 2011-05-23
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)
phpstan-import-type: TFontData from Load
__construct() : mixed: Build the subset of a TrueType font
getSubsetFont() : string: Returns the subset font program
Methods
__construct()
File: Subset.php line 117
public __construct(string $font, TFontData $fdt, File $fileHelper[, array<int, bool> $subchars = [] ]) : mixed
Parameters
- $font : string: Content of the input font file
- $fdt : TFontData: Extracted font metrics
- $fileHelper : File: File helper for font loading.
- $subchars : array<int, bool> = []: Array containing subset chars
Tags
- throws: Exception in case of error
getSubsetFont()
File: Subset.php line 157
public getSubsetFont() : string
Return values
string