提取woff/tff中的矢量图

F12,过滤器选font,找到woff文件,

woff转成ttf

https://www.fontke.com/tool/convfont/

ttf在百度字体编辑器里打开

http://fontstore.baidu.com/static/editor/index.html#

 

批量导出字形(F12,将以下代码输入至console中):

var stop=0;
var time=500;
$("#glyf-list .glyf-item").each(function(e,i){
    if(stop==0){
        setTimeout('console.log("Start",'+e+')',time); 
        setTimeout('$("#glyf-list .glyf-item:nth-child('+e+')").click();console.log("选中",'+e+');',time); 
        time=time+500;
        setTimeout('$("#glyf-list-commandmenu > li:nth-child(11)").click();console.log("点击导出",'+e+')',time); 
        time=time+500;
        setTimeout('$("#glyf-download-svg").click();console.log("点击下载SVG",'+e+')',time); 
        time=time+1000;
        setTimeout('$("#model-dialog > div > div > div.modal-header > button > span:nth-child(1)").click();console.log("关闭弹框",'+e+')',time); 
        setTimeout('console.log("End",'+e+')',time); 
        time=time+500;
    }
});

 

posted @ 2020-07-31 13:59  秋夜花开  阅读(498)  评论(0编辑  收藏  举报