🚀 DAY 4 OF LAUNCH WEEK: Introducing GitHub Actions Scanning Support.Learn more
Socket
Book a DemoInstallSign in
Socket

fis-command-baike-webfont

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fis-command-baike-webfont

Ultimate SVG to webfont converter for baike

latest
Source
npmnpm
Version
0.0.13
Version published
Maintainers
3
Created
Source

如何使用 fis-command-baike-webfont?

  • npm 全局安装 fis-command-baike-webfont 插件
  • 在 AI 中制作单个矢量图标,固定比例调整缩放另图标较宽边为 300 px,画布尺寸与图标上下边界对齐,注意需保证是封闭的路径,不能是单路径描边
  • 将文件保存为 svg 格式
  • 如果你打算在 /static/demo/demo.less 中定义 font-icon,建议将单个 svg 储存于 /static/demo/resource/font/icon/ 目录下,并以 1-example.svg 的方式命名(前缀的数字是为了保证在之后你需要加入其他图标时,并不妨碍你早先定义的图标的顺序,防止图标与字符编码对应错乱的问题)
  • 命令行回到当前模块根目录下,执行 baike-webfont 命令,无需任何参数
  • 待执行完成, /static/demo/resource/font/ 下就为你制作好各浏览器所需要的字体文件了
  • 完成字体制作就可以使用 fis-parser-baike-less 所提供的 mixin 语法进行每个 icon 的定义了

Keywords

font

FAQs

Package last updated on 12 Oct 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts