FontType

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.

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

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