ecomfe / fontmin-app

fontmin as an OS X, Linux and Windows app
http://ecomfe.github.io/fontmin
MIT License
682 stars 60 forks source link

RangeError: Offset is outside the bounds of the DataView #2

Closed c9n closed 5 years ago

c9n commented 9 years ago

RangeError: Offset is outside the bounds of the DataView

screenshot

junmer commented 9 years ago

hi @c9n , 可以把字体文件给我一下么,我定位一下问题 可以贴下网盘地址 :smiley:

c9n commented 9 years ago

Here u r. http://pan.baidu.com/s/1kT1PruB

c9n commented 9 years ago

@junmer 看了么 😄

junmer commented 9 years ago

@c9n app 确实有问题, 着急的话 先用 命令行 :smiley: 我再看看 哈

c9n commented 9 years ago

@junmer 好哒

c9n commented 9 years ago

@junmer

text=`curl localhost:4000 | html-to-text` && fontmin -t '$text' ~/Downloads/test.ttf

# error read glyf coordinates:4477598

命令行碰到了上述错误,难道是字体解析的问题么

test.ttf 就是网盘里的字体

junmer commented 9 years ago

@c9n 先确认一下,你的fontmin 是哪个版本?

c9n commented 9 years ago

@junmer 0.8.0

c9n commented 9 years ago

@junmer https://github.com/kekee000/fonteditor-ttf/blob/deaa68a3ad8bb291643c73b550dad3a867cd6c80/lib/ttf/table/glyf/parse.js#L13

应该是这个问题

c9n commented 9 years ago

MAX_NUMBER_OF_COORDINATES 改大之后,使用命令行操作就会碰到如下提示了:

Offset is outside the bounds of the DataView
junmer commented 9 years ago

@c9n hey

error read glyf coordinates:4477598

这个是个 warning , 是某个字形 有问题 应该不影响最后输出

c9n commented 9 years ago

@junmer 请教一下,glyf coordinates 是什么,这块儿不懂

sweatyc commented 4 years ago

仍然存在這問題,但我可以先用fontmin CLI生成一個較大的字庫後,再拉到fontmin-app就可以了

> fontmin myfont.ttf > myfont-raw.ttf