/var/www/greso.tech/server/nsm/node_modules/pdf-lib/ts3.4/es/core/embedders
NameSizeModeActions
CMap.d.ts2420644editdlrm
CustomFontEmbedder.d.ts22380644editdlrm
CustomFontSubsetEmbedder.d.ts10250644editdlrm
FileEmbedder.d.ts11430644editdlrm
FontFlags.d.ts4100644editdlrm
JavaScriptEmbedder.d.ts4470644editdlrm
JpegEmbedder.d.ts8710644editdlrm
PDFPageEmbedder.d.ts14090644editdlrm
PngEmbedder.d.ts7800644editdlrm
StandardFontEmbedder.d.ts14770644editdlrm
Edit: /var/www/greso.tech/server/nsm/node_modules/pdf-lib/ts3.4/es/core/embedders/CustomFontEmbedder.d.ts (2238B)
import { Font, Fontkit, Glyph, TypeFeatures } from "../../types/fontkit"; import PDFHexString from "../objects/PDFHexString"; import PDFRef from "../objects/PDFRef"; import PDFContext from "../PDFContext"; import { Cache } from "../../utils"; /** * A note of thanks to the developers of https://github.com/foliojs/pdfkit, as * this class borrows from: * https://github.com/devongovett/pdfkit/blob/e71edab0dd4657b5a767804ba86c94c58d01fbca/lib/image/jpeg.coffee */ declare class CustomFontEmbedder { static for(fontkit: Fontkit, fontData: Uint8Array, customName?: string, fontFeatures?: TypeFeatures): Promise; readonly font: Font; readonly scale: number; readonly fontData: Uint8Array; readonly fontName: string; readonly customName: string | undefined; readonly fontFeatures: TypeFeatures | undefined; protected baseFontName: string; protected glyphCache: Cache; protected constructor(font: Font, fontData: Uint8Array, customName?: string, fontFeatures?: TypeFeatures); /** * Encode the JavaScript string into this font. (JavaScript encodes strings in * Unicode, but embedded fonts use their own custom encodings) */ encodeText(text: string): PDFHexString; widthOfTextAtSize(text: string, size: number): number; heightOfFontAtSize(size: number, options?: { descender?: boolean; }): number; sizeOfFontAtHeight(height: number): number; embedIntoContext(context: PDFContext, ref?: PDFRef): Promise; protected embedFontDict(context: PDFContext, ref?: PDFRef): Promise; protected isCFF(): boolean; protected embedCIDFontDict(context: PDFContext): Promise; protected embedFontDescriptor(context: PDFContext): Promise; protected serializeFont(): Promise; protected embedFontStream(context: PDFContext): Promise; protected embedUnicodeCmap(context: PDFContext): PDFRef; protected glyphId(glyph?: Glyph): number; protected computeWidths(): (number | number[])[]; private allGlyphsInFontSortedById; } export default CustomFontEmbedder; //# sourceMappingURL=CustomFontEmbedder.d.ts.map