# 使用 Homebrew 安装 webfont

查看 webfont 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:webfont
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install webfont
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:webfont
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/webfont>
- **版本:** 12.4.1
- **来源摘要:** Generator of fonts from SVG icons, with TTF encoding and WOFF/WOFF2 decoding
- **主页:** <https://webfont.js.org/>
- **仓库:** <https://github.com/itgalaxy/webfont>
- **上游文档:** <https://webfont.js.org/>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/webfont/-/webfont-12.4.1.tgz>
- **最后更新:** 2026-07-07T13:17:23Z
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- webfont (cli)
- webfont (别名)

## 依赖

- node

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 12.4.1
- 管理器更新时间: 2026-07-07
- 本地数据: OK
- 上游仓库: https://webfont.js.org/
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

webfont is a Node.js and CLI tool for generating icon fonts from SVG files and for encoding or decompressing common web font formats.

### 项目历史

The official repository describes webfont as a monorepo whose published npm package lives under packages/webfont. Its main pipelines cover SVG icon font generation, TTF encoding, and WOFF or WOFF2 decompression.

The package metadata identifies the official Git repository as github.com/itgalaxy/webfont, with a CLI binary and MIT licensing. The current documentation site is webfont.js.org.

### 采用历史

webfont fits into front-end build systems that turn SVG icon sets into browser font assets and optional CSS, SCSS, Stylus, HTML, or JSON templates.

Homebrew packaging added a macOS and Linux CLI install path alongside npm, while the project documentation still recommends npm as the project dependency for library use.

### 使用方式

CLI use accepts input files or globs and options for output formats, destination directory, templates, font names, ligatures, unicode ranges, SVG diagnostics, and svgicons2svgfont parameters.

Configuration can be supplied by a package.json webfont property, .webfontrc variants, webfont.config.js, or an explicit --config/configFile path; the API reports the resolved config file path after a run.

### 为什么软件包爱好者会关心

webfont matters to package users because it consolidates a common icon-font build pipeline into a single installable command instead of requiring gulp, grunt, or project-specific glue.

It is also a good example of JavaScript package-manager culture crossing into system package managers: an npm build tool exposed as a Homebrew CLI for users who want the binary without wiring a Node project first.

### 时间线

- 2026: Version 12.0.0 removed old Node.js support and expanded font conversion behavior.
- 2026: Version 12.1.0 added TTF input encoding to WOFF and WOFF2, multiple templates per run, and SVG diagnostics-related features.
- 2026: Version 12.4.0 added TTF to SVG font encoding.
- 2026: Homebrew packaged webfont from the npm tarball for macOS and Linux CLI use.

### Related projects

- Related projects named by the official README include webfont-webpack-plugin, svgicons2svgfont, svg2ttf, ttf2eot, ttf2woff, wawoff2, and fontTools.
- The documentation also points users toward a custom Grunt recipe for legacy projects.

### 来源

- <https://formulae.brew.sh/formula/webfont>
- <https://github.com/itgalaxy/webfont#readme>
- <https://github.com/itgalaxy/webfont/blob/master/packages/webfont/CHANGELOG.md>
- <https://webfont.js.org/>
- <https://webfont.js.org/introduction/cli>
- <https://webfont.js.org/introduction/configuration>
- <https://webfont.js.org/introduction/install>


## 安全说明

没有找到 webfont 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: package.json#webfont, .webfontrc, .webfontrc.json, .webfontrc.yaml, .webfontrc.js, webfont.config.js
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** webfont
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable


## 相关链接

- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://www.automicvault.com/zh-hans/pkg/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [node](https://www.automicvault.com/zh-hans/pkg/brew/node/) - Runtime dependency declared by Homebrew.
- [webfont](https://www.automicvault.com/zh-hans/pkg/npm/webfont/) - Same normalized package name appears in another local ecosystem. Shared terms: fonts, generator, icons, svg, ttf.
- [fontmin](https://www.automicvault.com/zh-hans/pkg/npm/fontmin/) - Both packages touch the same language runtime or ecosystem. Shared terms: fonts, node, svg, ttf, webfont.
- [svgtofont](https://www.automicvault.com/zh-hans/pkg/npm/svgtofont/) - Both packages work with overlapping file formats or content types. Shared terms: fonts, svg, ttf, webfont, woff.
- [webfont](https://www.automicvault.com/zh-hans/pkg/npm/webfont/) - Same normalized package name in another local ecosystem.

## Combined YAML source

View the package source record on GitHub. [combined/webfont.yml](https://github.com/automic-vault/db/blob/main/combined/webfont.yml)


## 来源

- Nucleus package database
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
