从 2018 年 5 月 23 日起,我发现 fontello.com 已关闭。谁能建议我如何使用从 fontello 生成的 SVG 字体在其他在线引擎上添加更多字体?
问问题
928 次
4 回答
3
当它关闭时,您可以在本地运行它。
源代码在这里:https ://github.com/fontello/fontello
您将需要安装git
( https://git-scm.com/downloads ) & node
( https://nodejs.org/en/download/ )。
之后只需克隆,安装并运行项目:
git clone https://github.com/fontello/fontello
cd fontello
npm install
node server
之后只需localhost:3000
在浏览器中导航到
编辑:不过,这在 Windows 上不起作用。
于 2018-05-25T07:47:42.383 回答
0
你可以使用IcoMoon App,它在浏览器中做同样的事情。您可以通过拖放上传图标或字体 svg,例如 fontello。
选择您想在一组中包含的图标,然后单击屏幕底部的下载按钮。
于 2018-05-25T10:47:12.033 回答
0
感谢@PragmaticEd 的好意。但是当我启动节点服务器时,我得到:
fontello/lib/system/runner.js:118
async function execute() {
^^^^^^^^
SyntaxError: Unexpected token function
at Object.exports.runInThisContext (vm.js:76:16)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/Applications/MAMP/htdocs/fontello/server.js:12:3)
at Module._compile (module.js:570:32)
于 2018-05-25T09:09:19.207 回答
0
如果 fontello 出现故障 - 我的替代建议是使用以下 docker 映像:
https://hub.docker.com/r/avnerner/fontello_server/
docker pull avnerner/fontello_server
docker run -it -p 3000:3000 -d avnerner/fontello_server
于 2018-12-11T13:28:32.500 回答