@@ -33,7 +33,7 @@ export function hex(arrayBuffer) {
3333 * Creates a ToUnicode CMap string for a font.
3434 * The CMap maps character codes to Unicode values to enable text extraction.
3535 *
36- * @param {import('opentype .js').Font } font - Opentype.js font object
36+ * @param {import('../../font-parser/src/font .js').Font } font - Opentype.js font object
3737 * @returns {string } The ToUnicode CMap content string
3838 */
3939export function createToUnicode ( font ) {
@@ -107,7 +107,7 @@ const generateFontFlags = (serif, italic, smallcap, symbolic) => { /* eslint-dis
107107
108108/**
109109 *
110- * @param {opentype.Font } font - Opentype.js font object
110+ * @param {opentypeFont } font - Opentype.js font object
111111 * @param {number } objIndex - Index for font descriptor PDF object
112112 * @param {boolean } italic
113113 * @param {?number } embeddedObjIndex - Index for embedded font file PDF object.
@@ -174,7 +174,7 @@ function createFontDescriptor(font, objIndex, italic, embeddedObjIndex = null) {
174174 * Converts a Opentype.js font object into an array of strings containing PDF objects.
175175 * The font is represented as a simple "Type 1" font.
176176 *
177- * @param {opentype.Font } font - Opentype.js font object
177+ * @param {opentypeFont } font - Opentype.js font object
178178 * @param {number } firstObjIndex - Index for the first PDF object
179179 * @param {boolean } [italic=false] - Whether the font is italic.
180180 * @param {boolean } [isStandardFont=false] - Whether the font is a standard font.
@@ -250,7 +250,7 @@ export function createEmbeddedFontType1(font, firstObjIndex, italic = false, isS
250250 * The font is represented as a composite "Type 0" font.
251251 *
252252 * @param {Object } options - Configuration object
253- * @param {opentype.Font } options.font - Opentype.js font object
253+ * @param {opentypeFont } options.font - Opentype.js font object
254254 * @param {number } options.firstObjIndex - Index for the first PDF object
255255 * @param {boolean } [options.italic=false] - Whether the font is italic.
256256 *
0 commit comments