import type { FWord, GlyphId, UFWord } from "../../types.ts"; import type { Reader } from "../binary/reader.ts"; /** Horizontal metric for a glyph */ export interface LongHorMetric { advanceWidth: UFWord; lsb: FWord; } /** Horizontal metrics table */ export interface HmtxTable { hMetrics: LongHorMetric[]; leftSideBearings: FWord[]; } /** * Parse hmtx table. * @param reader - Reader positioned at hmtx table start * @param numberOfHMetrics - From hhea table * @param numGlyphs - From maxp table */ export declare function parseHmtx(reader: Reader, numberOfHMetrics: number, numGlyphs: number): HmtxTable; /** Get advance width for a glyph */ export declare function getAdvanceWidth(hmtx: HmtxTable, glyphId: GlyphId): number; /** Get left side bearing for a glyph */ export declare function getLeftSideBearing(hmtx: HmtxTable, glyphId: GlyphId): number;