See webfonts-generator#ligature cssFontsUrl, String (before cssFontsPath) See webfonts-generator#htmldest ligature, Boolean See webfonts-generator#html htmlDest, String See webfonts-generator#dest html, Boolean See webfonts-generator#types dest, String See webfonts-generator#rename types, Array See webfonts-generator#formatoptions rename, Function See webfonts-generator#fontname formatOptions, Object See webfonts-generator#files fontName, String This option can be also configured globally in the webpack loader options. These elements can be used in the filename: emitCodepoints: '.': emits a javascript file named.codepoints.js in the web (default) format emitCodepoints: true: emits a javascript file named.emitCodepoints, Array (with shorthand versions of Boolean, String and Object) : the extension of the font file being generated ( eot.If true, the build process will export a. If true the font is encoded in base64 and embedded inside the declaration, otherwise font files are written to disk. See webfonts-generator#cssDest embed, Boolean See webfonts-generator#cssTemplate cssDest, String See webfonts-generator#htmlContext cssTemplate, String See webfonts-generator#cssContext htmlContext, Function See webfonts-generator#templateOptions cssContext, FunctionĪdd parameters or helpers to your template. The prefix to be used with each icon class. See webfonts-generator#templateOptions classPrefix, String The base CSS selector, under which each icon class is to be created. Ttf2woff - Converts TTF fonts to WOFF format.įeel free to push your code if you agree with publishing under the MIT license.// entry.js require ( './myfont.font' ) Īll font configuration options baseSelector, String Ttf2eot - Converts TTF fonts to EOT format. Svg2ttf - Converts SVG fonts to TTF format. Svgicons2svgfont - Simple tool to merge multiple The CLI can exit the process with the following exit codes: prepend-unicode Prefix files with their automatically allocated unicode codepoint. start-unicode The start unicode codepoint for unprefixed files. normalize Normalize icons by scaling them to the height of the highest icon. center-horizontally Calculate the bounds of a glyph and center it horizontally. fixed-width Creates a monospace font of the width of the largest input icon. font-id The font id you want, default as "-font-name ". s, -dest-css-template Destination for generated css template. n, -css-template-font-name Font name in css template. p, -css-template-font-path Font path in css template. c, -css-template-class-name Class name in css template. t, -src-css-template Path to custom template. d, -dest Destination for generated fonts. f, -font-name The font family name you want, default: "webfont ". a \`.webfontrc \` file (with or without filename extension: a \`webfont \` property in \`package.json \` If no \`-config \` argument is provided, webfont will search forĬonfiguration files in the following places, in this order: Or the name of a module in \`node_modules \` that points to one. config Path to a specific configuration file (JSON, YAML, or CommonJS) Webfont -help prints the CLI documentation. The interface for command-line usage is fairly simplistic at this stage, as seen in the following usage section. cssTemplateFontNameĭefault value getting from fontName options, but you can specify any value. cssTemplateClassNameĭefault font class name. Possible values: css, scss (feel free to contribute). If not passed srcCssTemplate, then it takes from template directory. Possible values: svg, ttf, eot, woff, woff2. Node_modules and bower_components are always ignored. Ultimately passed to node-glob to figure out what files you want to lint. Const webfont = require ( 'webfont' ) webfont ( ) Options filesĪ file glob, or array of file globs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |