pdfrx_web
    Preparing search index...

    Interface PdfFontQuery

    A font the engine could not find while loading or rendering a document. Emitted via the missingFonts event; supply a substitute with PdfrxEngine.addFontData.

    Missing-font fallback — how the default resolver maps these queries to downloadable fonts.

    interface PdfFontQuery {
        charset: number;
        face: string;
        isItalic: boolean;
        pitchFamily: number;
        weight: number;
    }
    Index
    charset: number

    PDFium charset id of the requested font (the LOGFONT lfCharSet value). Compare against the named ids in PdfFontCharset (e.g. query.charset === PdfFontCharset.shiftJis), or turn it into a label with pdfFontCharsetName. May be any value PDFium reports; the named set covers the ones it commonly emits.

    face: string

    Requested typeface (family) name.

    isItalic: boolean
    pitchFamily: number

    PDFium pitch-and-family byte of the requested font (the LOGFONT lfPitchAndFamily value). The low two bits are pitch flags, while the high nibble is one mutually exclusive family value. Use the helpers below rather than treating all values as independent flags.

    weight: number

    Requested weight (e.g. 400 for regular, 700 for bold).