phpdftk API Documentation

MathGlyphConstruction
in package

Read onlyYes
FinalYes

One stretchy delimiter recipe from a {@see MathVariants} table.

Two pieces of data per base glyph:

  • variants: a list of pre-drawn alternate glyphs at fixed sizes. The painter scans this list smallest-first and uses the first whose advance (in design units) is >= the required size.

  • assembly: optional fall-back when no variant is large enough - a recipe for stacking glyph parts to any height. Null if the font doesn't supply one for this glyph (most production fonts do).

Table of Contents

Properties

$assembly  : MathGlyphAssembly|null
$variants  : array<string|int, mixed>

Methods

__construct()  : mixed

Properties

Methods

__construct()

public __construct(array<int, array{glyphId: int, advance: int}> $variants, MathGlyphAssembly|null $assembly) : mixed
Parameters
$variants : array<int, array{glyphId: int, advance: int}>

Pre-drawn stretchy variants, sorted smallest first per spec.

$assembly : MathGlyphAssembly|null

Multi-part glyph assembly for arbitrary sizes, or null when the font supplies no assembly.


        
On this page

Search results