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

fix for various versions of FontForge official binary package #35

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

dummy-index
Copy link

Python 2 support is deprecated on latest FontForge.
Some fix to run pt4_svg_to_font.py with ffpython.exe within several versions of FontForgeBuilds.

@dummy-index
Copy link
Author

Why TravisCI fails to run pt2?

Traceback (most recent call last):
  File "pt2_character_classification.py", line 115, in <module>
    b64_repr = base64.b64encode(char.encode('utf-8')).decode('utf-8')
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 0: ordinal not in range(128)

Previous code will work on Travis, but error on my Python 3.6.12 :: Anaconda, Inc.

Traceback (most recent call last):
  File "pt2_character_classification.py", line 115, in <module>
    b64_repr = char.encode('base64')
LookupError: 'base64' is not a text encoding; use codecs.encode() to handle arbitrary codecs

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

Successfully merging this pull request may close these issues.

1 participant