取消css的oogleify
ungog的Python项目详细描述
取消css的oogleify
安装
pip3 install ungog
用法
ungogmycss main.css [+] got https://fonts.googleapis.com/css?family=Gruppo|Scope+One [+] got https://fonts.gstatic.com/s/gruppo/v7/uU5IFiQZ8WKPhrRfLBLURw.ttf [+] replacing from: src: local('Gruppo'), url(https://fonts.gstatic.com/s/gruppo/v7/uU5IFiQZ8WKPhrRfLBLURw.ttf) format('truetype'); [+] replacing to: src: local('Gruppo'), url('fonts/gruppo.ttf') format('truetype'); [+] got https://fonts.gstatic.com/s/scopeone/v2/_52Fm41u4u2R3EEH0A9bn6CWcynf_cDxXwCLxiixG1c.ttf [+] replacing from: src: local('Scope One'), local('ScopeOne-Regular'), url(https://fonts.gstatic.com/s/scopeone/v2/_52Fm41u4u2R3EEH0A9bn6CWcynf_cDxXwCLxiixG1c.ttf) format('truetype'); [+] replacing to: src: local('Scope One'), local('ScopeOne-Regular'), url('fonts/scope_one.ttf') format('truetype'); [+] done
然后应该准备好用main.css.new替换原始文件。 不要忘记将新字体/文件夹包含到本地资源中。