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 while converting a font #84

Open
bye-csavier opened this issue Mar 25, 2024 · 0 comments
Open

Error while converting a font #84

bye-csavier opened this issue Mar 25, 2024 · 0 comments

Comments

@bye-csavier
Copy link

I wanted to convert Bodoni Moda font into a woff2 font but I get the following error:

Start-Process : Cannot convert 'System.Object[]' to the type 'System.String' required by parameter
'RedirectStandardInput'. Specified method is not supported.
At line:1 char:45
+ ... f2woff2.cmd -rsi BodoniModa-Italic-VariableFont_opsz,wght.ttf -rso Bo ...
+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Start-Process], ParameterBindingException
    + FullyQualifiedErrorId : CannotConvertArgument,Microsoft.PowerShell.Commands.StartProcessCommand

Start-Process : Cannot convert 'System.Object[]' to the type 'System.String' required by parameter
'RedirectStandardInput'. Specified method is not supported.
At line:1 char:45
+ ... wait ttf2woff2.cmd -rsi BodoniModa-VariableFont_opsz,wght.ttf -rso Bo ...
+                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Start-Process], ParameterBindingException
    + FullyQualifiedErrorId : CannotConvertArgument,Microsoft.PowerShell.Commands.StartProcessCommand

I use a bat script to get the files and the command used to call ttf2woff2 is this one:
powershell -Command "start-process -nnw -wait ttf2woff2.cmd -rsi %%F -rso !FILE!.woff2"

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

1 participant