@qrcommunication/gigapdf-lib — SDK API reference - v0.121.0
    Preparing search index...

    Interface EmbeddedFontV2

    One embedded font program (from GigaPdfDoc.embeddedFontsV2) — the per-program, deduplicated sibling of EmbeddedFont. A form generator routinely embeds dozens of same-family font wrappers whose descriptors all share a handful of physical programs; where GigaPdfDoc.embeddedFonts lists one entry per name, this lists one entry per /FontFile* stream, with every name wrapped around it.

    interface EmbeddedFontV2 {
        fontId: string;
        format: "truetype" | "cff" | "type1";
        numGlyphs: number;
        baseFonts: string[];
    }
    Index

    Properties

    fontId: string

    The program's stable content identity (first 8 hex chars of the SHA-256 of the decoded bytes) — feed it to GigaPdfDoc.extractWebFontById / GigaPdfDoc.webFontCoverage. Matches TextElementInfo.fontId.

    format: "truetype" | "cff" | "type1"

    Embedded program format (see EmbeddedFont.format).

    numGlyphs: number

    Glyph count of the parsed program (0 when it does not parse).

    baseFonts: string[]

    The /BaseFont names of every wrapper font dict referencing this program (deduplicated, sorted).