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

[otc2otf] concat str to bytes on Python 3 #708

Closed
mrhso opened this issue Dec 27, 2018 · 0 comments
Closed

[otc2otf] concat str to bytes on Python 3 #708

mrhso opened this issue Dec 27, 2018 · 0 comments
Assignees
Labels

Comments

@mrhso
Copy link

mrhso commented Dec 27, 2018

On Python 3, otc2otf fails with this message:

D:\体包工作室>otc2otf msyh.ttc
 font: msyh.ttc
Traceback (most recent call last):
  File "c:\program files\python37\lib\runpy.py", line 193, in _run_module_as_mai
n
    "__main__", mod_spec)
  File "c:\program files\python37\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Program Files\Python37\Scripts\otc2otf.exe\__main__.py", line 9, in <
module>
  File "c:\program files\python37\lib\site-packages\afdko\otc2otf.py", line 284,
 in main
    run(sys.argv[1:])
  File "c:\program files\python37\lib\site-packages\afdko\otc2otf.py", line 270,
 in run
    fontEntry = readFontFile(offset, data, tableDict, doReportOnly)
  File "c:\program files\python37\lib\site-packages\afdko\otc2otf.py", line 203,
 in readFontFile
    fontEntry.fileName = fontEntry.psName + ".ttf"
TypeError: can't concat str to bytes
@mrhso mrhso changed the title [otc2otf] Cconcat str to bytes in Python 3 [otc2otf] Concat str to bytes in Python 3 Dec 27, 2018
@mrhso mrhso changed the title [otc2otf] Concat str to bytes in Python 3 [otc2otf] concat str to bytes in Python 3 Dec 27, 2018
@mrhso mrhso changed the title [otc2otf] concat str to bytes in Python 3 [otc2otf] concat str to bytes on Python 3 Dec 27, 2018
miguelsousa added a commit that referenced this issue Jan 8, 2019
@miguelsousa miguelsousa self-assigned this Jan 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants