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

Fonts with missing or invalid property values will not be parsed. #5

Closed
datio opened this issue Jan 22, 2013 · 0 comments
Closed

Fonts with missing or invalid property values will not be parsed. #5

datio opened this issue Jan 22, 2013 · 0 comments
Assignees

Comments

@datio
Copy link

datio commented Jan 22, 2013

An edge case error really, but the ability to open webfonts could be quite handy.

Error: RangeError: argument 1 accesses an index that is out of range
Source File: http://ynakajima.github.com/ttf.js/vendor/jdataview.js
Line: 126

Example files (edited Ostrich Regular fonts):
http://duckduckgo.gr/ttfjs_test_fonts/Ostrich_Regular.ttf [original open source font]
http://duckduckgo.gr/ttfjs_test_fonts/Ostrich_blank_properties.ttf
http://duckduckgo.gr/ttfjs_test_fonts/Ostrich_invalid_properties.ttf
http://duckduckgo.gr/ttfjs_test_fonts/ostrich_protected_squirrel.ttf [webfont made with fontsquirrel generator]

TTFEdit [http://ttfedit.sourceforge.net/] will open the same files properly. No ttf parser that I know of can open such malformed files.

ostrich_protected_squirrel.ttf:
screenshot

Maybe if there was an option to pre-populate or use custom values for any properties of the font would fix this issue?

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