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

Error:no writech in Transform class #124

Open
CabbageBuddha opened this issue Mar 29, 2017 · 7 comments
Open

Error:no writech in Transform class #124

CabbageBuddha opened this issue Mar 29, 2017 · 7 comments

Comments

@CabbageBuddha
Copy link

压缩时总是弹出此错误,会生成压缩字体并没有压缩

@aui
Copy link
Owner

aui commented Mar 30, 2017

@CabbageBuddha
Copy link
Author

iMac:WebRoot baicai$ font-spider ./*.html
Load: ../../../../../../../../cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.Error: no writecb in Transform class
at afterTransform (/usr/local/lib/node_modules/font-spider/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:74:40)
at TransformState.afterTransform (/usr/local/lib/node_modules/font-spider/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:58:12)
at Through2._transform (/usr/local/lib/node_modules/font-spider/node_modules/fontmin/plugins/glyph.js:165:13)
at Through2.Transform._read (/usr/local/lib/node_modules/font-spider/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:159:10)
at Through2.Transform._write (/usr/local/lib/node_modules/font-spider/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:147:83)
at doWrite (/usr/local/lib/node_modules/font-spider/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:313:64)
at writeOrBuffer (/usr/local/lib/node_modules/font-spider/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:302:5)
at Through2.Writable.write (/usr/local/lib/node_modules/font-spider/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:241:11)
at DestroyableTransform.ondata (/usr/local/lib/node_modules/font-spider/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:531:20)
at emitOne (events.js:96:13)
iMac:WebRoot baicai$

@xkrumeng
Copy link

这个问题我也遇到了,,不知道怎么解决

@shahho
Copy link

shahho commented Jan 31, 2018

我解决问题了,因为你的字体文件是不是可读写的,要修改属性为“可读” “可修改” 大概是这个意思。

@CabbageBuddha
Copy link
Author

你好,能大概说明一下修改属性嘛

@WenjianWong
Copy link

我也遇到了这个问题~~~求解决~!~

Error:no writecb in transform class

..

@sumaolin
Copy link

也遇到了了,具体报错信息:

Error: no writecb in Transform class
    at afterTransform (C:\Users\KevinSu\AppData\Roaming\npm\node_modules\font-spider\node_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:74:40)
    at TransformState.afterTransform (C:\Users\KevinSu\AppData\Roaming\npm\node_modules\font-spider\node_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:58:12)
    at Through2._transform (C:\Users\KevinSu\AppData\Roaming\npm\node_modules\font-spider\node_modules\fontmin\plugins\glyph.js:165:13)
    at Through2.Transform._read (C:\Users\KevinSu\AppData\Roaming\npm\node_modules\font-spider\node_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:159:10)
    at Through2.Transform._write (C:\Users\KevinSu\AppData\Roaming\npm\node_modules\font-spider\node_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:147:83)
    at doWrite (C:\Users\KevinSu\AppData\Roaming\npm\node_modules\font-spider\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:313:64)
    at writeOrBuffer (C:\Users\KevinSu\AppData\Roaming\npm\node_modules\font-spider\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:302:5)
    at Through2.Writable.write (C:\Users\KevinSu\AppData\Roaming\npm\node_modules\font-spider\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:241:11)
    at DestroyableTransform.ondata (C:\Users\KevinSu\AppData\Roaming\npm\node_modules\font-spider\node_modules\through2\node_modules\readable-stream\lib\_stream_readable.js:531:20)
    at emitOne (events.js:116:13)

系统环境:
window 7
node v8.9.4

先遇到的问题是 Unmatched " erroe,按提示删除了css中的 content: "";内容,然后就开始--debug模式下出现上面的错误。

--info模式下是可以正确解析出所包含的文字的

[ { id: 'e13e1fef006953ebe659690c8475ebfb',                                          
    family: 'hkytw7',                                                                
    files:                                                                           
     [ { url: 'e:/huggies-vaccine/font/w7.ttf',                                      
         format: 'embedded-opentype' },                                              
       { url: 'e:/huggies-vaccine/font/w7.woff2', format: 'woff2' },                 
       { url: 'e:/huggies-vaccine/font/w7.woff', format: 'woff' },                   
       { url: 'e:/huggies-vaccine/font/w7.ttf', format: 'truetype' },                
       { url: 'e:/huggies-vaccine/font/w7.svg', format: 'svg' } ],                   
    style: 'normal',                                                                 
    weight: 'normal',                                                                
    chars: '+/12347ACEV丸乙五介价共减剂卡口可合四型年必感手打接每毒水活流灭灰炎状球甲疫疹病痘白百破种第糖结群联肝肺脊脑              
腮自苗菌质费足轮选风髓麻',                                                                       
    selectors: [ '.wrap.vaccine-list .lst li' ] } ]                                  

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

6 participants