Closed RePlayer2 closed 4 months ago
svg_folder_path
and input_path
are positional arguments, not optional arguments, therefore the paths should not be preceded by any arguments. Try the following command instead:
python addsvg.py "H:\test_py\opentypesvg\" "H:\test_py\opentypesvg\Zebrawood.otf"
Thank you for answering my question,but i used your method the Command line Window still show”is not valid folder path“, I think ,I may need other ways to use the "addsvg.py" file
@RePlayer2 what output do you get when you run this command:
addsvg --help
Don't add anything to the command above. If opentypesvg
was installed via pip
you should be able to run the command above from any directory.
@miguelsousa This is my command used "addsvg --help“ the English means is roughly ‘addsvg’ is not an internal or external command, nor is it a runnable program or bathc file however, I sure "pip instal opentypesvg"and "pip install -u pip" this is result
but my PyCharm is run this issue‘s code ,in the picture below "the libeary is pip install opentypesvg"
add to used library of opentypesvg succeed run my code,my pythons version is 3.8 ,ued venv all contain opentype-svg but is not use "addsvg --help" or "run code addsvg in pycharm",Whether it's "pip install opentype svg" or "addsvg code" the troubel is feel at a loss for me
OK, let's go step by step:
python -m venv ot-svg
ot-svg\Scripts\activate.bat
opentypesvg
package
python -m pip install opentypesvg
addsvg
tool
addsvg --help
It looks like it worked
it's greate ,Thank you for your Patient help, i can used addsvg to generate fonts show in word
I use the OTF (Zebrawood. otf) file from the font file and the SVG file from the test file to run the code in the Command Line Window, which shows that it is not a valid folder path