import { type GlyphRun } from '../glyph-run.ts'; /** * The 'kern' table provides kerning pair adjustments for horizontal text. * This is the legacy kern table format; modern fonts typically use the * GPOS table for kerning instead. * * Only Microsoft-style (version 0) tables with format 0 subtables are * supported. Apple-style (version 1) tables are recognized but skipped. */ export declare class KernTable { private readonly pairs; /** * Reads a 'kern' table from the given DataView. * Returns `undefined` for unsupported table versions (e.g. Apple-style version 1). */ static read(data: DataView): KernTable | undefined; private constructor(); /** * Returns the kerning value for a glyph pair, or 0 if no kerning is defined. */ getKerning(leftGlyphId: number, rightGlyphId: number): number; /** * Applies kerning adjustments to consecutive glyph pairs in a glyph run. * For performance reasons, glyphs are modified in place. */ applyToGlyphRun(glyphRun: GlyphRun): void; }