Skip to content

Error: codePoint is not a function #127

@finscn

Description

@finscn
16 |
17 |   var result = [];
18 |
19 |   var index = 0;
20 |   while (index < str.length) {
21 |     var point = codePoint(str.charAt(index) + str.charAt(index + 1));
                     ^
TypeError: codePoint is not a function. (In 'codePoint(str.charAt(index) + str.charAt(index + 1))', 'codePoint' is an instance of Module)
      at codePoints (********/node_modules/code-points/dist/code-points-cjs.js:21:17)
      at string2unicodes (********/node_modules/fontmin/lib/util.js:122:19)
      at <anonymous> (********/node_modules/fontmin/plugins/glyph.js:125:24)

My test case :

const fontmin = new Fontmin()
    .src(fontFile)
    .use(Fontmin.glyph({
        text: textString,
    }))
    .dest(outputFontFile);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions