class final Core · roukmoute/pdf 0.6.1
PDF\Specification\Dictionary\FontDescriptorsTable122ISO 32000-1:2008, table 122: Entries common to all font descriptors.Inheritance and contracts
Parent : PDF\Specification\SchemaDictionary
Interfaces : Countable, IteratorAggregate, PDF\Syntax\FileStructure\BasicType, Stringable, Traversable
Definition in the specification
Table 122 · Entries common to all font descriptors
ISO 32000-1:2008, §9.8.1 · PDF page 289 ↗
| Entry | PDF type | Source requirement | Table |
|---|---|---|---|
/Type | name | Required | 122 |
/FontName | name | Required | 122 |
/FontFamily | byte string | Optional; PDF 1.5; should be used for Type 3 fonts in Tagged PDF documents | 122 |
/FontStretch | name | Optional; PDF 1.5; should be used for Type 3 fonts in Tagged PDF documents | 122 |
/FontWeight | number | Optional; PDF 1.5; should be used for Type 3 fonts in Tagged PDF documents | 122 |
/Flags | integer | Required | 122 |
/FontBBox | rectangle | Required, except for Type 3 fonts | 122 |
/ItalicAngle | number | Required | 122 |
/Ascent | number | Required, except for Type 3 fonts | 122 |
/Descent | number | Required, except for Type 3 fonts | 122 |
/Leading | number | Optional | 122 |
/CapHeight | number | Required for fonts that have Latin characters, except for Type 3 fonts | 122 |
/XHeight | number | Optional | 122 |
/StemV | number | Required, except for Type 3 fonts | 122 |
/StemH | number | Optional | 122 |
/AvgWidth | number | Optional | 122 |
/MaxWidth | number | Optional | 122 |
/MissingWidth | number | Optional | 122 |
/FontFile | stream | Optional | 122 |
/FontFile2 | stream | Optional; PDF 1.1 | 122 |
/FontFile3 | stream | Optional; PDF 1.2 | 122 |
/CharSet | ASCII string or byte string | Optional; meaningful only in Type 1 fonts; PDF 1.1 | 122 |
Conditional descriptions remain traceable. A definition alone does not implement a codec, a signature or every format mechanism. Read the coverage.
Construction
__construct()
public function __construct(PDF\Syntax\Object\DictionaryObject\Entry ...$entries)Inherited methods
11 methods from parents and contracts
__toString()
public function __toString(): stringcount()
public function count(): intdefinition()
public function definition(): PDF\Specification\TableDefinitionentries()
public function entries(): iterable@return iterable<Entry>get()
public function get(PDF\Syntax\Object\NameType|string $key): ?PDF\Syntax\FileStructure\BasicTypegetIterator()
public function getIterator(): Traversablehas()
public function has(PDF\Syntax\Object\NameType|string $key): booltoPdf()
public function toPdf(PDF\Serialization\SerializationContext $context): stringvalidate()
public function validate(): voidChecks unconditional requirements; conditional and inherited rules remain explicit.with()
public function with(PDF\Syntax\Object\DictionaryObject\Entry $entry): staticwithout()
public function without(PDF\Syntax\Object\NameType|string $key): staticConstants
| Name | PHP value | Origin |
|---|---|---|
COMMON_TABLES | | PDF\Specification\Dictionary\FontDescriptorsTable122 |
TABLE | | PDF\Specification\Dictionary\FontDescriptorsTable122 |