i**8 发帖数: 134 | 1 Mac/Linux/Win+cygwin可用
网上流传那个太复杂而且没必要
其实只要把字体路径加到font-face src里就可以了
#!/bin/bash
# stupid zip doesn't support stdin with file name, so we have to use file
# sed replace src:, may be too many. better way is src within font-face
nook() {
unzip -o "$1" OPS/css/main.css
sed -i "s_src:_src:url(res:///system/fonts/DroidSansFallback.ttf),_" OPS/
css/main.css
zip "$1" OPS/css/main.css
} | a***a 发帖数: 40617 | 2 请问你知道怎么设字体大小吗?
【在 i**8 的大作中提到】 : Mac/Linux/Win+cygwin可用 : 网上流传那个太复杂而且没必要 : 其实只要把字体路径加到font-face src里就可以了 : #!/bin/bash : # stupid zip doesn't support stdin with file name, so we have to use file : # sed replace src:, may be too many. better way is src within font-face : nook() { : unzip -o "$1" OPS/css/main.css : sed -i "s_src:_src:url(res:///system/fonts/DroidSansFallback.ttf),_" OPS/ : css/main.css
|
|