MCPcopy
hub / github.com/koodo-reader/koodo-reader / baseFontRef

Method baseFontRef

public/lib/pdfjs/pdf.worker.mjs:38915–38924  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38913 return this.xref.getNewPersistentRef(descendantFont);
38914 }
38915 get baseFontRef() {
38916 const baseFont = new Dict(this.xref);
38917 baseFont.set("BaseFont", this.fontName);
38918 baseFont.set("Type", Name.get("Font"));
38919 baseFont.set("Subtype", Name.get("Type0"));
38920 baseFont.set("Encoding", Name.get("Identity-H"));
38921 baseFont.set("DescendantFonts", [this.descendantFontRef]);
38922 baseFont.set("ToUnicode", Name.get("Identity-H"));
38923 return this.xref.getNewPersistentRef(baseFont);
38924 }
38925 get resources() {
38926 const resources = new Dict(this.xref);
38927 const font = new Dict(this.xref);

Callers

nothing calls this directly

Calls 3

setMethod · 0.95
getNewPersistentRefMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected