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'; export type StandardFontName = 'Courier' | 'Courier-Oblique' | 'Courier-Bold' | 'Courier-BoldOblique' | 'Helvetica' | 'Helvetica-Oblique' | 'Helvetica-Bold' | 'Helvetica-BoldOblique' | 'Times-Roman' | 'Times-Italic' | 'Times-Bold' | 'Times-BoldItalic' | 'Symbol' | 'ZapfDingbats'; /** * Represents one of the "standard 14 fonts" that are predefined in PDF. * See PDF 1.7, section 5.5.1 */ export declare class PDFStandardFont extends PDFFont { private readonly name; private readonly metrics; readonly key: string; readonly fontName: string; readonly familyName: string; readonly style: FontStyle; readonly weight: number; readonly ascent: number; readonly descent: number; readonly lineGap: number; constructor(name: StandardFontName); shapeText(text: string, _opts?: ShapeOptions): ShapedGlyph[]; register(context: PDFContext): PDFRef; }