0.0.2 • Published 4 years ago

@ztwx/webfont v0.0.2

Weekly downloads
6
License
ISC
Repository
github
Last release
4 years ago

webFont

Generate webfont through by web

Install

npm install @ztwx/webfont --save

Running

npx cmWebFont start

Configuration

The initial run will generate .cm-webfontrc in the root directory of your project.

cm-webfontrc file

  • outputDir The Directory where CSS and font files are stored
  • imgDir Your image storage address
  • fontName Font file name
  • fontClassName
  • formats Font formats
  • base64 boolean; for mini program. The base64 content of the font is embedded in the CSS file.