phpdftk API Documentation

MathKernInfoParser
in package

FinalYes

Parser for the MathKernInfo sub-table of an OpenType MATH table.

Layout:

Offset16 mathKernCoverageOffset
uint16   mathKernCount
MathKernInfoRecord records[count]:
    Offset16 topRightMathKernOffset
    Offset16 topLeftMathKernOffset
    Offset16 bottomRightMathKernOffset
    Offset16 bottomLeftMathKernOffset

Each MathKern (per-corner) layout:

uint16 heightCount
MathValueRecord correctionHeights[heightCount]
MathValueRecord kernValues[heightCount + 1]

All offsets are relative to the start of MathKernInfo (the sub-table this parser receives as bytes).

Empty / truncated input returns an empty MathKernInfo rather than throwing - fonts in the wild ship partial tables.

Table of Contents

Methods

parse()  : MathKernInfo

Methods


        
On this page

Search results