Skip to content
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

Error #6

Open
wushuangs opened this issue May 8, 2024 · 1 comment
Open

Error #6

wushuangs opened this issue May 8, 2024 · 1 comment

Comments

@wushuangs
Copy link

`PythonError: Traceback (most recent call last):
File "/lib/python3.11/site-packages/fontTools/misc/loggingTools.py", line 375, in wrapper
return func(*args, **kwds)
^^^^^^^^^^^^^^^^^^^
File "/lib/python3.11/site-packages/fontTools/subset/init.py", line 3688, in main
save_font(font, outfile, options)
File "/lib/python3.11/site-packages/fontTools/misc/loggingTools.py", line 375, in wrapper
return func(*args, **kwds)
^^^^^^^^^^^^^^^^^^^
File "/lib/python3.11/site-packages/fontTools/subset/init.py", line 3522, in save_font
font.save(outfile, reorderTables=options.canonical_order)
File "/lib/python3.11/site-packages/fontTools/ttLib/ttFont.py", line 234, in save
file.write(tmp.getvalue())
OSError: raw write() returned invalid length 23389952 (should have been between 0 and 21092)

at new_error (/usr/local/lib/node_modules/@web-alchemy/fonttools/node_modules/pyodide/pyodide.asm.js:9:10014)
at wasm://wasm/02257296:wasm-function[300]:0x158e62
at wasm://wasm/02257296:wasm-function[301]:0x158f69
at Module._pythonexc2js (/usr/local/lib/node_modules/@web-alchemy/fonttools/node_modules/pyodide/pyodide.asm.js:9:608600)
at Module.callPyObjectKwargs (/usr/local/lib/node_modules/@web-alchemy/fonttools/node_modules/pyodide/pyodide.asm.js:9:64408)
at Module.callPyObject (/usr/local/lib/node_modules/@web-alchemy/fonttools/node_modules/pyodide/pyodide.asm.js:9:65365)
at _.apply (/usr/local/lib/node_modules/@web-alchemy/fonttools/node_modules/pyodide/pyodide.asm.js:9:79442)
at Object.apply (/usr/local/lib/node_modules/@web-alchemy/fonttools/node_modules/pyodide/pyodide.asm.js:9:77681)
at main (/usr/local/lib/node_modules/@web-alchemy/fonttools/modules/subset/cli.js:8:20) {

type: 'OSError',
__error_address: 19742000
}

Node.js v18.0.0
Font subsetted successfully to output.ttf`

@monochromer
Copy link
Contributor

Please, provide more information about what and how you do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants