import type { PDFRef } from '../core/pdf-ref.ts'; import type { PDFContext } from '../document/pdf-context.ts'; import type { FontStyle, ShapedGlyph, ShapeOptions } from './pdf-font.ts'; import { PDFFont } from './pdf-font.ts'; /** * Represents an font that is embedded in a PDFDocument. */ export declare class PDFEmbeddedFont extends PDFFont { private readonly font; private readonly glyphIdToCidMap; private readonly glyphIds; private readonly codePoints; private readonly name; private readonly scale; private shaper; readonly key: string; readonly ascent: number; readonly descent: number; readonly lineGap: number; readonly fontName: string; readonly familyName: string; readonly style: FontStyle; readonly weight: number; constructor(data: Uint8Array); shapeText(text: string, opts?: ShapeOptions): ShapedGlyph[]; acquireCid(glyphId: number, codePoints: number[]): number; register(context: PDFContext): PDFRef; private registerFont; private extractStyle; private extractWeight; }