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, orCommonJS) or the name of a module innode_modulesthat points to one. If no--configargument is provided,webfontwill search for configuration files in the following places, in this order:- a
webfontproperty inpackage.json - a
.webfontrcfile (with or without filename extension:.json,.yaml, and.jsare available) - a
webfont.config.jsfile exporting a JS object
- a
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 useddestargument 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 fromwebfont11.4.0, dated April 2026, and it lives underWEBFONT(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
- ubuntu stonking: node-webfont 11.4.0+dfsg2+~cs35.7.26-19 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms