class final Core · roukmoute/pdf 0.9.1
PDF\Specification\Dictionary\Type1FontDictionaryTable111\WidthsEntryTable 111, /Widths; PDF type: array; Required except for the standard 14 fonts; indirect reference preferred.Inheritance and contracts
Parent : PDF\Specification\SchemaEntry
Definition in the specification
Table 111 · Entries in a Type 1 font dictionary
ISO 32000-1:2008, §9.6.2.1 · PDF page 263 ↗
/Widths array
(Required except for the standard 14 fonts; indirect reference preferred) An array of (LastChar − FirstChar + 1) widths, each element being the glyph width for the character code that equals FirstChar plus the array index. For character codes outside the range FirstChar to LastChar, the value of MissingWidth from the FontDescriptor entry for this font shall be used. The glyph widths shall be measured in units in which 1000 units correspond to 1 unit in text space. These widths shall be consistent with the actual widths given in the font program. For more information on glyph widths and other glyph metrics, see 9.2.4, "Glyph Positioning and Metrics". Beginning with PDF 1.5, the special treatment given to the standard 14 fonts is deprecated. Conforming writers should represent all fonts using a complete font descriptor. For backwards capability, conforming readers shall still provide the special treatment identified for the standard 14 fonts.
Qualifier: Required except for the standard 14 fonts; indirect reference preferred
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\ArrayType|PDF\Syntax\Object\IndirectReference $value)Inherited methods
3 methods from parents and contracts
definition()
public function definition(): PDF\Specification\EntryDefinitionkey()
public function key(): PDF\Syntax\Object\NameTypevalue()
public function value(): PDF\Syntax\FileStructure\BasicTypeProperties
| Declaration | Origin and documentation |
|---|---|
public readonly PDF\Syntax\Object\NameType $key | PDF\Syntax\Object\DictionaryObject\Entry |
public readonly PDF\Syntax\FileStructure\BasicType $value | PDF\Syntax\Object\DictionaryObject\Entry |
Constants
| Name | PHP value | Origin |
|---|---|---|
KEY | | PDF\Specification\Dictionary\Type1FontDictionaryTable111\WidthsEntry |
TABLE | | PDF\Specification\Dictionary\Type1FontDictionaryTable111\WidthsEntry |
VARIABLE | | PDF\Specification\SchemaEntry |