Table of contents
Namespace: Com\Tecnick\Pdf\Font
Backing type: string
File: FontType.php line 38
Backed enum for the font type accepted by Import::__construct. The backing value of each case is the canonical type name; the empty string selects autodetection.
Tags
- since: 2026-07-17
- 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)
- link: https://github.com/tecnickcom/tc-lib-pdf-font
Cases
Auto
File: FontType.php line 41
Core
File: FontType.php line 44
TrueType
File: FontType.php line 47
TrueTypeUnicode
File: FontType.php line 50
Type1
File: FontType.php line 53
Cid0Jp
File: FontType.php line 56
Cid0Kr
File: FontType.php line 59
Cid0Cs
File: FontType.php line 62
Cid0Ct
File: FontType.php line 65
Methods
fromLoose()
File: FontType.php line 77
public static fromLoose(string|self $value) : self
Accepts the canonical type name, the empty string for autodetection, or an enum instance, which is returned unchanged.
Parameters
- $value : string|self: Font type name or enum case.
Tags
- throws: Exception if the value does not match a known font type.
Return values
self