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

RangeError: argument 1 accesses an index that is out of range #44

Closed
fpirsch opened this issue Jun 3, 2014 · 4 comments
Closed

RangeError: argument 1 accesses an index that is out of range #44

fpirsch opened this issue Jun 3, 2014 · 4 comments

Comments

@fpirsch
Copy link
Collaborator

fpirsch commented Jun 3, 2014

I'm getting this errror with the artbrush.ttf font ( http://www.dafont.com/fr/artbrush.font )
Don't have the time to investigate this right now, but the font seems all right and can be used with other software. So this could be a bug in opentype.js

@fdb
Copy link
Contributor

fdb commented Jun 10, 2014

The bug seems to be in the parsing of the OS/2 table. Older versions of the table have less data (for example, version 0). The Artbrush font uses this older version 0.

We should take the version number into account when parsing the table.

@fdb
Copy link
Contributor

fdb commented Jun 10, 2014

With correct OS/2 table parsing:

screenshot from 2014-06-10 11 05 44

@fdb
Copy link
Contributor

fdb commented Jun 10, 2014

Fixed in 569f0cb.

@fdb fdb closed this as completed Jun 10, 2014
@fpirsch
Copy link
Collaborator Author

fpirsch commented Jun 10, 2014

Nice ! Thanks !

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