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

question with Step1: Convert TTF to Sdfs #11

Open
a980265978 opened this issue Nov 16, 2023 · 3 comments
Open

question with Step1: Convert TTF to Sdfs #11

a980265978 opened this issue Nov 16, 2023 · 3 comments

Comments

@a980265978
Copy link

Why still prompt ModuleNotFoundError: No module named 'fontforge' after successfully downloading python3-fontforge

@holmes27
Copy link

you can check under /usr/bin/python3 for fontforge.

@a980265978
Copy link
Author

you can check under /usr/bin/python3 for fontforge.

It has been checked and the return path is /usr/lib/python3/dist-packages/fontforge.cpython-38-x86_64-linux-gnu.so, but the error will still be prompted as follows :
File "/home/p520/公共的/lwq/code/deepvec-v2/deepvecfont-v2-main/data_utils/convert_ttf_to_sfd.py", line 56, in process
cur_font.selection.select(char1)
AttributeError: 'int' object has no attribute 'selection'

@a980265978
Copy link
Author

Can I manually process the dataset through Fontforge to meet the training format requirements

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