@ztwx/webfont
v0.0.2
Published
webfont
Downloads
14
Keywords
Readme
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.