svgembed
1.0.0
https://github.com/marionebl/svg-term svg嵌入器
npm install -g git+https://github.com/miraclx/svgembed
# alternatively, with yarn
yarn global add https://github.com/miraclx/svgembed.git<img>標籤)上,例如在github上) stdin 由於此腳本僅嵌入您提供的文件以及一些SVG補丁,因此文件尺寸是增量的,在某些情況下可能確實很大。嘗試使用您嵌入的字體的輕巧版本。或使用所需的字形創建自定義字體。
根據您的瀏覽器和Internet連接,字體可能需要一段時間才能加載。
$ svgembed --help
svgembed (c) 2020 Miraculous Owonubi <[email protected]>
------------------------------------------------------------
Usage: svgembed [options]
Options
-i, --input <VALUE> the input SVG file
-o, --output <VALUE> the output file name
-f, --font <VALUE> fontfile to be embedded (otf/ttf)
-t, --title [VALUE] set terminal window title (default: "Terminal")
-r, --right use right-sided window icons
-v, --hover dim window icons on hover
--overwrite overwrite existing output
--h, --help output usage information
svg-term --in media/demo --out demo.svg --window --term konsole --width 78
52.10 KiB501.62 KiBsvgembed -i demo.svg -o final.svg -r -f nerd_fonts.ttf -t "svgembed is cool" --hover
501.62 KiB1007.0 KiB )"svgembed is cool"rightdim (查看原始SVG)1844.76 KiB-v, --hover 
font :<string>:如果有的話,要嵌入的字體。title :<string>:要使用的窗口標題(如果有)。right :<Boolean>:是否將窗口圖標移至右側。hover :<Boolean>:是否要在懸停的窗口圖標上變暗。file :<string>:SVG文件的字符串表示。config :<config>file :<string>:SVG文件的字符串表示。config :<config> apache 2.0©奇蹟般的Owonubi (@miraclx)<[email protected]>