Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
MathKernRecord
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace Phpdftk\FontParser;
6
7/**
8 * Per-glyph corner kern table. Up to four corner-specific kern
9 * tables; each corner is null when the font supplies no kerning
10 * for that corner.
11 *
12 * Each corner table is stored as a {@see MathKern} - a list of
13 * (correctionHeight, kernValue) breakpoints. The painter looks up
14 * the kern at a given sub/sup Y offset by finding the lowest
15 * breakpoint whose correctionHeight exceeds the offset.
16 */
17final readonly class MathKernRecord
18{
19    public function __construct(
20        public ?MathKern $topRight = null,
21        public ?MathKern $topLeft = null,
22        public ?MathKern $bottomRight = null,
23        public ?MathKern $bottomLeft = null,
24    ) {}
25}