WEBFONT(1)

okay bestie, welcome to WEBFONT(1) β€” yeah that's the User Commands one, section 1, we're in the big leagues πŸ’…


✨ NAME ✨

webfont β€” literally converts a set of SVG files into a webfont, in various formats. that's the whole thing. that's her job πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

she's a generator of fonts from svg icons, okay? the whole pipeline, no cap:

  • svg icons β†’ svg font
  • svg font β†’ ttf
  • ttf β†’ eot
  • ttf β†’ woff
  • ttf β†’ woff2

Usage:

webfont [input] [options]

Input: file(s) or glob(s) 🫢

The way that an input argument gets wrapped in quotation marks and then it's passed to fast-glob for cross-platform glob support?? iconic.

Options:

  • --config β€” Path to a specific configuration file (JSON, YAML, or CommonJS) or the name of a module in node_modules that points to one. If no --config argument is provided, webfont will search for configuration files in the following places, in this order:
    1. a webfont property in package.json
    2. a .webfontrc file (with or without filename extension: .json, .yaml, and .js are available)
    3. a webfont.config.js file exporting a JS object

The search will begin in the working directory and move up the directory tree until a configuration file is found. she's climbing, your honor πŸ§—β€β™€οΈ

  • -u, --fontName β€” The font family name you want, default: "webfont". πŸ’–
  • -h, --help β€” Output usage information. the classic.
  • -v, --version β€” Output the version number. (hi, 11.4.0, love u)
  • -f, --formats β€” Only this formats generate. picky queen behavior, and we respect it πŸ”₯
  • -d, --dest β€” Destination for generated fonts.
  • -m, --dest-create β€” Create destination directory if it does not exist. she manifests it into existence ✨
  • -t, --template β€” Type of template ('css', 'scss', 'styl') or path to custom template.
  • -s, --destTemplate β€” Destination for generated template. If not passed used dest argument value.
  • -c, --templateClassName β€” Class name in css template.
  • -p, --templateFontPath β€” Font path in css template.
  • -n, --templateFontName β€” Font name in css template.
  • --templateCacheString β€” Specify cache string in scss/css template.
  • --no-sort β€” Keeps the files in the same order of entry. chronological, as the universe intended πŸ¦‹
  • --no-ligatures β€” Prevents adding ligature unicode.
  • --verbose β€” Tell me everything!.

🌸 For svgicons2svgfont 🌸

  • --fontId β€” The font id you want, default as --fontName.
  • --fontStyle β€” The font style you want.
  • --fontWeight β€” The font weight you want.
  • --fixedWidth β€” Creates a monospace font of the width of the largest input icon. thicc and consistent 🫢
  • --centerHorizontally β€” Calculate the bounds of a glyph and center it horizontally. centered, balanced, main character energy πŸ‘‘
  • --normalize β€” Normalize icons by scaling them to the height of the highest icon.
  • --fontHeight β€” The outputted font height [MAX(icons.height)].
  • --round β€” Setup the SVG path rounding [10e12].
  • --descent β€” The font descent [0].
  • --ascent β€” The font ascent [height - descent].
  • --startUnicode β€” The start unicode codepoint for files without prefix [0xEA01].
  • --prependUnicode β€” Prefix files with their automatically allocated unicode codepoint.
  • --metadata β€” Content of the metadata tag.
  • --addHashInFontUrl β€” Generated font url will be : [webfont].[ext]?v=[hash]

πŸ’€ reminder bestie: this whole page is from webfont 11.4.0, dated April 2026, and it lives under WEBFONT(1) in User Commands. that's the source, that's the version, that's the date β€” periodt. go build ur font, you absolute icon πŸŒˆπŸ¦‹πŸ’œ
πŸ“¦ where this page comes from