class final Core · roukmoute/pdf 0.6.1

PDF\Document\Fonts\SimpleWidths
Tables 111/112: contiguous byte-code widths, exactly LastChar−FirstChar+1.

Read the source declaration ↗

Inheritance and contracts

Parent : PDF\Syntax\Object\ArrayType

Interfaces : Countable, IteratorAggregate, PDF\Syntax\FileStructure\BasicType, Stringable, Traversable

Construction

__construct()

public function __construct(PDF\Syntax\Object\IntegerType $first, PDF\Syntax\Object\NumericType ...$widths)

Declared by PDF\Document\Fonts\SimpleWidths · View the code ↗

Declared methods

width()

public function width(PDF\Syntax\Object\IntegerType $code, PDF\Syntax\Object\NumericType $missing = new NumericType(0)): PDF\Syntax\Object\NumericType

Declared by PDF\Document\Fonts\SimpleWidths · View the code ↗

Inherited methods

4 methods from parents and contracts

__toString()

public function __toString(): string

Declared by PDF\Syntax\Object\ArrayType · View the code ↗

count()

public function count(): int

Declared by PDF\Syntax\Object\ArrayType · View the code ↗

getIterator()

public function getIterator(): Traversable

Declared by PDF\Syntax\Object\ArrayType · View the code ↗

toPdf()

public function toPdf(PDF\Serialization\SerializationContext $context): string

Declared by PDF\Syntax\Object\ArrayType · View the code ↗

Properties

DeclarationOrigin and documentation
public readonly PDF\Syntax\Object\IntegerType $firstPDF\Document\Fonts\SimpleWidths
public readonly array $itemsPDF\Syntax\Object\ArrayType
@var list<BasicType>
public readonly PDF\Syntax\Object\IntegerType $lastPDF\Document\Fonts\SimpleWidths