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

The familyName in the font information cannot use other characters and must be ascii. #690

Open
StringKe opened this issue Jan 8, 2023 · 0 comments

Comments

@StringKe
Copy link

StringKe commented Jan 8, 2023

font = defcon.Font()
setattr(font.info, "familyName", "中文")
font.save(path=ufo_dir)

ufo = defcon.Font(ufo_dir)
otf = ufo2ft.compileOTF(ufo)
otf.save(ttf_file)

UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-5: ordinal not in range(128)

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