graphicore / ufoJS

Javascript API for the Unified Font Object
lib.ufojs.org
GNU General Public License v3.0
52 stars 10 forks source link

crash when importing: "Cannot read property '0' of null" #55

Open felipesanches opened 9 years ago

felipesanches commented 9 years ago

When trying to import an UFO in Metapolator with the command:

./metapolator-import /tmp/teste/Gabriela-Regular.ufo/ testing/gabriela_master

I got his error:

/home/felipe/devel/github_felipesanches/master_metapolator/app/lib/project/ImportController.js:113 throw error; ^

TypeError: Cannot read property '0' of null at SegmentPen.enhance._qCurveToOne (/home/felipe/devel/github_felipesanches/master_metapolator/app/lib/ufoJS/lib/tools/pens/BasePen.js:84:43)

felipesanches commented 9 years ago

Gabriela-Regular was downloaded from https://github.com/google/fonts/blob/master/ofl/gabriela/Gabriela-Regular.ttf and converted to an UFO by using https://everythingfonts.com/ttf-to-ufo which @davelab6 told us is in fact an automated server-side FontForge converter.

graphicore commented 9 years ago

Can you make the files included in this bug accessible.

I think you can use https://gist.github.com/ for uploads. Best out them into a zip or any other archive.

@felipesanches please send the ufo as an attachement to: metapolator-developers@googlegroups.com Subject maybe: "ufoJS issue 55"