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

If you make fonts with the java editor and get "index out of range" errors with these tools... #1

Open
tigert opened this issue Sep 5, 2017 · 0 comments

Comments

@tigert
Copy link

tigert commented Sep 5, 2017

Turns out the python scripts are kind of strict about endlines, and I was getting this:

$ python copy2mcm.py -i pixelaatio.mcm \
-o ../betaflight-configurator-tigert/resources/osd/clarity.mcm -f 0xA0  -t 0xA0 -c 64
Read 256 chars from pixelaatio.mcm
Read 0 chars from ../betaflight-configurator-tigert/resources/osd/clarity.mcm
Traceback (most recent call last):
  File "copy2mcm.py", line 76, in <module>
  odata[copy_to + i] = idata[copy_from + i]
IndexError: list assignment index out of range

My font was created with the MAX7456Charwizard java editor. Turns out it creates Windows-like line-endings on the font file. I got past the above error by using "dos2unix" command to convert my font file to "unix" line endings.

Maybe this helps someone, so wanted to write this down.

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