-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to handle **ridiculously** large input #3
Comments
It means that your source file is too large... Will test tomorrow using some internal build.
发自我的 iPhone
… 在 2017年4月7日,21:29,limelightful ***@***.***> 写道:
While I use these tools to convert some otf to ttf.
otfccdump NotoSerifCJKtc-Regular.otf | otfcc-c2q | otfccbuild -o NotoSerifCJKtc-Regular.ttf
An Error prompts out and says
/usr/lib/node_modules/otfcc-c2q/c2q_cli.js:7
process.stdin.on('data', function (buf) { glyfsource += buf.toString(); });
^
RangeError: Invalid string length
at Socket.<anonymous> (/usr/lib/node_modules/otfcc-c2q/c2q_cli.js:7:61)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at readableAddChunk (_stream_readable.js:176:18)
at Socket.Readable.push (_stream_readable.js:134:10)
at Pipe.onread (net.js:548:20)
otfccbuild : Parse into JSON : [ERROR] Cannot parse JSON file "(null)". Exit.
However, I have no problem converting other fonts like Source Han Sans.
Does node version matter? Node version of my computer is v6.10.0.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
For some reason (bug 1, bug 2), Node.js cannot handle input longer than 512 MiB (256 mebi UTF-16 code units). According to a Stack Overflow post, JSONStream might be useful to load and store this kind of large JSON object. |
I think it is fixed now. Currently c2q depends on Megaminx backwards and can read arbitrary-sized font as input. |
While I use these tools to convert some otf to ttf.
An Error prompts out and says
However, I have no problem converting other fonts like Source Han Sans.
Does node version matter? Node version of my computer is v6.10.0.
The text was updated successfully, but these errors were encountered: