Type Alias BpxKerningPrevSegmentMap

BpxKerningPrevSegmentMap: {
    [prevSegment: string]: number;
}

The map of how much to adjust the vertical placement of this glyph if the previous text segment (char) was one of the keys in this map.

$d.setFont(
$font({
glyphs: new Map<string, BpxGlyph>([
[
"T",
{
// ...
},
],
[
"i",
{
// ...
kerning: {
// put "i" a 1 px closer to "T", so they do not look so distant visually
T: -1,
},
},
],
]),
}),
);