import type { GlyphId, int16, uint16 } from "../../types.ts"; import type { Reader } from "../binary/reader.ts"; /** * Vertical Origin table (VORG) * Provides y-coordinate of vertical origin for CFF fonts * Used for proper vertical text layout in CJK fonts */ export interface VorgTable { majorVersion: uint16; minorVersion: uint16; defaultVertOriginY: int16; vertOriginYMetrics: VertOriginYMetric[]; } /** * Vertical origin metric for a specific glyph */ export interface VertOriginYMetric { glyphIndex: GlyphId; vertOriginY: int16; } /** * Parse VORG table */ export declare function parseVorg(reader: Reader): VorgTable; /** * Get vertical origin Y coordinate for a glyph * Returns the y-coordinate of the glyph's vertical origin */ export declare function getVertOriginY(vorg: VorgTable, glyphId: GlyphId): int16; /** * Check if a glyph has a specific vertical origin entry */ export declare function hasVertOriginY(vorg: VorgTable, glyphId: GlyphId): boolean;